Skip to content

Commit 7a8586a

Browse files
committed
refactor: Addressed warning about missing default fixture scope configuration in tests/async_fixtures/test_shared_module_fixture.py
1 parent 552a745 commit 7a8586a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/async_fixtures/test_shared_module_fixture.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44

55

66
def test_asyncio_mark_provides_package_scoped_loop_strict_mode(pytester: Pytester):
7+
pytester.makeini("[pytest]\nasyncio_default_fixture_loop_scope = function")
78
pytester.makepyfile(
89
__init__="",
910
conftest=dedent(
1011
"""\
1112
import pytest_asyncio
12-
@pytest_asyncio.fixture(scope="module")
13+
@pytest_asyncio.fixture(loop_scope="module", scope="module")
1314
async def async_shared_module_fixture():
1415
return True
1516
"""

0 commit comments

Comments
 (0)