Exemple #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
Exemple #2
0
 def fetcher(self, *, app):
     return Fetcher(app)