Exemplo n.º 1
0
 def fetcher(self, *, app, consumer):
     fetcher = Fetcher(app)
     app.consumer = consumer
     # some weird pytest-asyncio thing
     fetcher.loop = asyncio.get_event_loop()
     return fetcher
Exemplo n.º 2
0
 def fetcher(self, *, app):
     return Fetcher(app)