async def dummy_guillotina(event_loop, request): globalregistry.reset() app = make_app(settings=get_dummy_settings(request.node), loop=event_loop) async with TestClient(app): yield app logout() clear_task_vars()
def dummy_guillotina(loop, request): globalregistry.reset() aioapp = loop.run_until_complete( make_app(settings=get_dummy_settings(request.node), loop=loop)) aioapp.config.execute_actions() load_cached_schema() yield aioapp try: loop.run_until_complete(close_async_tasks(aioapp)) except asyncio.CancelledError: pass logout()