File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
packages/pytest-simcore/src/pytest_simcore
services/web/server/tests/integration Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1515import aiodocker
1616import docker
1717import pytest
18+ import pytest_asyncio
1819import yaml
1920from common_library .dict_tools import copy_from_dict
2021from docker .errors import APIError
@@ -245,7 +246,7 @@ def _make_dask_sidecar_certificates(simcore_service_folder: Path) -> None:
245246 )
246247
247248
248- @pytest .fixture (scope = "module" )
249+ @pytest_asyncio .fixture (scope = "module" , loop_scope = "module" )
249250async def docker_stack (
250251 osparc_simcore_services_dir : Path ,
251252 docker_swarm : None ,
Original file line number Diff line number Diff line change 1313# pylint: disable=unused-argument
1414# pylint: disable=unused-variable
1515
16+ import asyncio
1617import json
1718import logging
1819import sys
@@ -178,3 +179,11 @@ def mock_orphaned_services(mocker: MockerFixture) -> mock.Mock:
178179@pytest .fixture (scope = "session" )
179180def osparc_product_name () -> str :
180181 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