Skip to content

[FIX][pyproject.toml][Add pytest-asyncio to the test dependencies so async tests run] - #2786

Merged
kyegomez merged 1 commit into
kyegomez:masterfrom
ayaangazali:pr/pytest-asyncio-dep
Oct 21, 2026
Merged

kyegomez merged 1 commit into
kyegomez:masterfrom
ayaangazali:pr/pytest-asyncio-dep

Conversation

@ayaangazali

Copy link
Copy Markdown
Collaborator

What is wrong

21 async tests fail in CI without ever running:

Failed: async def functions are not natively supported.

[tool.pytest.ini_options] sets asyncio_mode = "auto", but pytest-asyncio is in neither [tool.poetry.group.test.dependencies] nor requirements.txt, so the plugin is never installed in CI. The affected files from the issue's master run (8ec7948ce): tests/structs/test_decision_model.py (9), tests/test_streaming_timing.py (8), tests/structs/test_sequential_workflow.py (2), tests/structs/test_agent.py (1), tests/structs/test_swarm_architectures.py (1).

What this changes

Adds pytest-asyncio>=0.26.0 to both files — the poetry test group and requirements.txt, which the Python package workflow installs from.

Some of those tests may then fail for real; that is expected, since they have never run.

Closes #2779

@ayaangazali
ayaangazali requested a review from kyegomez as a code owner October 21, 2026 19:15
Copilot AI balanced review requested due to automatic review settings October 21, 2026 19:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@kyegomez
kyegomez merged commit 171cfe7 into kyegomez:master Oct 21, 2026
6 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FIX][pyproject.toml][Add pytest-asyncio to the test dependencies so async tests run]

3 participants