quart icon indicating copy to clipboard operation
quart copied to clipboard

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

Open john0isaac opened this issue 1 year ago • 0 comments

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 avatar Apr 26 '24 21:04 john0isaac