Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: use asynccontextmanager for FastAPI lifespan #2597

Open
wants to merge 6 commits into
base: staging
Choose a base branch
from

Conversation

zyzniewski-reef
Copy link
Contributor

Bug

test_threaded_fastapi not synchronizing correctly with FastAPIThreadedServer thread.

Description of the Change

Async generator function lifespans are deprecated, use an @contextlib.asynccontextmanager function instead

@zyzniewski-reef zyzniewski-reef force-pushed the test/use_asynccontextmanager_for_fastapi_lifespan branch 2 times, most recently from 840ee2e to ddb9829 Compare January 22, 2025 17:14
@zyzniewski-reef zyzniewski-reef force-pushed the test/use_asynccontextmanager_for_fastapi_lifespan branch from ddb9829 to 321d359 Compare January 22, 2025 17:15
tests/unit_tests/test_axon.py Outdated Show resolved Hide resolved
thewhaleking
thewhaleking previously approved these changes Feb 3, 2025
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.

4 participants