def guillotina_main(loop): HARD_CACHE.clear() aioapp = make_app(settings=get_pg_settings(), loop=loop) aioapp.config.execute_actions() load_cached_schema() yield aioapp loop.run_until_complete(close_async_tasks(aioapp))
def guillotina_main(loop): HARD_CACHE.clear() from guillotina import test_package # noqa aioapp = make_app(settings=PG_SETTINGS, loop=loop) aioapp.config.execute_actions() load_cached_schema() yield aioapp
def guillotina_main(loop): HARD_CACHE.clear() from guillotina import test_package # noqa aioapp = make_app(settings=get_pg_settings(), loop=loop) aioapp.config.execute_actions() load_cached_schema() yield aioapp close_async_tasks()
def dummy_request(dummy_guillotina, monkeypatch): HARD_CACHE.clear() from guillotina.interfaces import IApplication from guillotina.component import get_utility root = get_utility(IApplication, name='root') db = root['db'] request = get_mocked_request(db) return request
async def guillotina(test_server, postgres, guillotina_main, loop): HARD_CACHE.clear() server = await test_server(guillotina_main) requester = GuillotinaDBRequester(server=server, loop=loop) return requester
async def dummy_txn_root(dummy_request): HARD_CACHE.clear() return RootAsyncContextManager(dummy_request)