PytestCollectionWarning: cannot collect 'test_app' because it is not a function. async def __call__(

59 Views Asked by At

PytestCollectionWarning: cannot collect 'test_app' because it is not a function. async def call(

Here test_app is an isnatance of quart app:

# Create the Quart app
test_app = app.create_app()

def event_runner():

    policy = asyncio.get_event_loop_policy()
    loop = policy.new_event_loop()

    yield loop
    loop.close()

I tried seeting flad test= flase for test_app.

0

There are 0 best solutions below