def fetcher(self, *, app, consumer): fetcher = Fetcher(app) app.consumer = consumer # some weird pytest-asyncio thing fetcher.loop = asyncio.get_event_loop() return fetcher
def fetcher(self, *, app): return Fetcher(app)