Skip to content

Commit 92a9aee

Browse files
committed
moved loop one down
1 parent 5d30009 commit 92a9aee

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

services/web/server/tests/conftest.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# pylint: disable=unused-argument
44
# pylint: disable=unused-variable
55

6+
import asyncio
67
import json
78
import logging
89
import random
@@ -478,3 +479,11 @@ def mock_dynamic_scheduler(mocker: MockerFixture) -> None:
478479
"simcore_service_webserver.dynamic_scheduler.api.update_projects_networks",
479480
autospec=True,
480481
)
482+
483+
484+
@pytest.fixture
485+
async def loop(
486+
event_loop: asyncio.AbstractEventLoop,
487+
) -> asyncio.AbstractEventLoop:
488+
"""Override the event loop inside pytest-aiohttp with the one from pytest-asyncio."""
489+
return event_loop

services/web/server/tests/integration/conftest.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# pylint: disable=unused-argument
1414
# pylint: disable=unused-variable
1515

16-
import asyncio
1716
import json
1817
import logging
1918
import sys
@@ -179,11 +178,3 @@ def mock_orphaned_services(mocker: MockerFixture) -> mock.Mock:
179178
@pytest.fixture(scope="session")
180179
def osparc_product_name() -> str:
181180
return "osparc"
182-
183-
184-
@pytest.fixture
185-
async def loop(
186-
event_loop: asyncio.AbstractEventLoop,
187-
) -> asyncio.AbstractEventLoop:
188-
"""Override the event loop inside pytest-aiohttp with the one from pytest-asyncio."""
189-
return event_loop

0 commit comments

Comments
 (0)