diff --git a/tests/test_rpkgs.py b/tests/test_rpkgs.py index bd2696f..5fc0829 100644 --- a/tests/test_rpkgs.py +++ b/tests/test_rpkgs.py @@ -3,7 +3,7 @@ import pytest import pytest_asyncio -pytestmark = pytest.mark.asyncio +pytestmark = pytest.mark.asyncio(scope='session') from nvchecker import core, __main__ as main from nvchecker.util import Entries, VersData, RawResult @@ -27,7 +27,7 @@ async def run(entries: Entries) -> VersData: vers, _has_failures = await main.run(result_coro, runner_coro) return vers -@pytest_asyncio.fixture(scope='module') +@pytest_asyncio.fixture(scope='session') async def get_version(): async def __call__(name, config): entries = {name: config} @@ -36,12 +36,6 @@ async def __call__(name, config): return __call__ -loop = asyncio.new_event_loop() -@pytest.fixture(scope='module') -def event_loop(request): - yield loop - loop.close() - async def test_cran(get_version): assert await get_version('xml2', {