Lines Matching refs:event_loop
55 ``event_loop``
61 Note that just using the ``event_loop`` fixture won't make your test function
63 like ``event_loop.run_until_complete``. See the ``pytest.mark.asyncio`` marker
72 def test_http_client(event_loop):
74 resp = event_loop.run_until_complete(http_client(url))
80 ``pytest.mark.asyncio`` marker and not the ``event_loop`` fixture directly.
85 def event_loop():
92 Fixtures depending on the ``event_loop`` fixture can expect the policy to be properly modified when…
126 to redefine the ``event_loop`` fixture to have the same or broader scope.
128 than the ``event_loop`` fixture.
150 asyncio task using the event loop provided by the ``event_loop`` fixture. See
153 The event loop used can be overriden by overriding the ``event_loop`` fixture
169 async def test_example(event_loop):
171 await asyncio.sleep(0, loop=event_loop)
180 - Fix `#162 <https://github.com/pytest-dev/pytest-asyncio/issues/162>`_, and ``event_loop`` fixture…
237 - The ``event_loop`` fixture is again responsible for closing itself.
243 dependent on the ``event_loop`` fixture run, thus allowing them to take
256 - Make ``event_loop`` fixtures simpler to override by closing them in the