diff --git a/tests/test_agen_fixture.py b/tests/test_agen_fixture.py index 4323229..5844529 100644 --- a/tests/test_agen_fixture.py +++ b/tests/test_agen_fixture.py @@ -6,7 +6,7 @@ class TestSessionScopeAsyncGenFixture: @pytest.fixture(scope="session") - def loop(self): + def event_loop(self): with entrypoint() as loop: yield loop diff --git a/tests/test_fixture_module.py b/tests/test_fixture_module.py index 3727eaf..44a22ab 100644 --- a/tests/test_fixture_module.py +++ b/tests/test_fixture_module.py @@ -6,18 +6,18 @@ @pytest.fixture(scope="module") -def loop(): +def event_loop(): with entrypoint() as loop: asyncio.set_event_loop(loop) yield loop @pytest.fixture(scope="module") -async def sample_fixture(loop): +async def sample_fixture(event_loop): yield 1 -async def test_using_fixture(sample_fixture, loop): +async def test_using_fixture(sample_fixture, event_loop): loop_id = id(asyncio.get_event_loop()) assert sample_fixture == 1 - assert id(loop) == loop_id + assert id(event_loop) == loop_id diff --git a/tests/test_loop_fixture.py b/tests/test_loop_fixture.py index 52313ff..ae2c165 100644 --- a/tests/test_loop_fixture.py +++ b/tests/test_loop_fixture.py @@ -6,7 +6,7 @@ import pytest from aiomisc import Service -from aiomisc_pytest.pytest_plugin import PortSocket +from aiomisc_pytest import PortSocket class _TestService(Service):