def client( loop, aiohttp_client, aiohttp_unused_port, configure_schemas_location, configure_registry_access, ): app = main.setup_app() server_kwargs = {"port": aiohttp_unused_port(), "host": "localhost"} client = loop.run_until_complete(aiohttp_client(app, server_kwargs=server_kwargs)) return client
def client( loop, aiohttp_client, aiohttp_unused_port, configure_schemas_location, configure_registry_access, ): config.DIRECTOR_REGISTRY_CACHING = True config.DIRECTOR_REGISTRY_CACHING_TTL = 5 # config.DIRECTOR_REGISTRY_CACHING_TTL = 5 app = main.setup_app() server_kwargs = {"port": aiohttp_unused_port(), "host": "localhost"} registry_cache_task.setup(app) yield loop.run_until_complete(aiohttp_client(app, server_kwargs=server_kwargs))