File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
services/web/server/tests Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 33# pylint: disable=unused-argument
44# pylint: disable=unused-variable
55
6+ import asyncio
67import json
78import logging
89import 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
Original file line number Diff line number Diff line change 1313# pylint: disable=unused-argument
1414# pylint: disable=unused-variable
1515
16- import asyncio
1716import json
1817import logging
1918import sys
@@ -179,11 +178,3 @@ def mock_orphaned_services(mocker: MockerFixture) -> mock.Mock:
179178@pytest .fixture (scope = "session" )
180179def 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
You can’t perform that action at this time.
0 commit comments