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

[Docs] AttributeError: 'async_generator' object has no attribute 'test_client' #335

Open
john0isaac opened this issue Apr 26, 2024 · 0 comments · May be fixed by #336
Open

[Docs] AttributeError: 'async_generator' object has no attribute 'test_client' #335

john0isaac opened this issue Apr 26, 2024 · 0 comments · May be fixed by #336

Comments

@john0isaac
Copy link

john0isaac commented Apr 26, 2024

Reproduce

Follow the testing part of the documentation:
https://pgjones.gitlab.io/quart/how_to_guides/startup_shutdown.html#testing

AttributeError: 'async_generator' object has no attribute 'test_client'

The app fixture is not created as an async fixture which results in breaking the second part of the documentation where we attempt to access the test_client() it gives an async_generator.

Expected

The tests work successfully and I don't receive an async generator error
Environment:

  • Python version:3.12.2
  • Quart version:0.19.5
@john0isaac john0isaac linked a pull request Apr 26, 2024 that will close this issue
6 tasks
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 a pull request may close this issue.

1 participant