Hi, I wonder why the quart's app context cannot be shared via fixtures.
@pytest.fixture
async def app_context(app): # app is a quart instance
async with app.app_context() as app_context:
await async_call() # All good: context is available here:
yield app_context
async def test_smth(app_context):
await async_call() # Error: not within an app context
We would expect the test to be running normally at the yield, but it doesn't like the context is lost. I'm I missing something or at least can this behavior be explained to me, please? Could it be a bug in the async-io level itself?
Thank you 🙏
Environment:
- Python version: 3.9
- Quart version: 0.18.3
Hi, I wonder why the quart's app context cannot be shared via fixtures.
We would expect the test to be running normally at the
yield, but it doesn't like the context is lost. I'm I missing something or at least can this behavior be explained to me, please? Could it be a bug in the async-io level itself?Thank you 🙏
Environment: