portfolio-optimiser/tests/spikes/test_imports.py

29 lines
1,023 B
Python

"""Step 1 import smoke: the throwaway spikes package resolves, and the dev-only
orchestration + solver + async dependencies are importable.
Pattern: tests/test_smoke.py (plain functions, no fixtures).
"""
def test_spikes_package_imports() -> None:
import spikes # noqa: F401 (repo-root on pythonpath; no collision with installed dists)
def test_orchestration_builders_import() -> None:
# The GA orchestration builders live in the separate `agent-framework-orchestrations`
# package (NOT top-level agent_framework, NOT core) — confirmed by introspection + PyPI.
from agent_framework.orchestrations import ( # noqa: F401
ConcurrentBuilder,
GroupChatBuilder,
MagenticBuilder,
StandardMagenticManager,
TerminationCondition,
)
def test_solver_imports() -> None:
import pulp # noqa: F401 (Spike C — bundles a CBC binary in its wheel)
def test_async_runner_imports() -> None:
import pytest_asyncio # noqa: F401 (MAF orchestrations are async)