Skip to content

Commit 7ece812

Browse files
committed
change pytest fixture scope
1 parent 99c3815 commit 7ece812

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

test/asynchronous/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def event_loop_policy():
2424
return asyncio.get_event_loop_policy()
2525

2626

27-
@pytest_asyncio.fixture(scope="session", autouse=True)
27+
@pytest_asyncio.fixture(scope="packages", autouse=True)
2828
async def test_setup_and_teardown():
2929
await async_setup()
3030
yield

test/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def event_loop_policy():
2222
return asyncio.get_event_loop_policy()
2323

2424

25-
@pytest.fixture(scope="session", autouse=True)
25+
@pytest.fixture(scope="packages", autouse=True)
2626
def test_setup_and_teardown():
2727
setup()
2828
yield

tools/synchro.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
"async_repl_set_step_down": "repl_set_step_down",
111111
"AsyncPeriodicExecutor": "PeriodicExecutor",
112112
"async_wait_for_event": "wait_for_event",
113+
"pymongo_server_monitor_thread": "pymongo_server_monitor_task",
113114
}
114115

115116
docstring_replacements: dict[tuple[str, str], str] = {

0 commit comments

Comments
 (0)