Repository navigation
[FIX][pyproject.toml][Add pytest-asyncio to the test dependencies so async tests run] - #2786
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is wrong
21 async tests fail in CI without ever running:
[tool.pytest.ini_options]setsasyncio_mode = "auto", butpytest-asynciois in neither[tool.poetry.group.test.dependencies]norrequirements.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.0to both files — the poetry test group andrequirements.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