From a4bd6754df3899fd62e8108315ab7ba95d6d5080 Mon Sep 17 00:00:00 2001 From: Erik Date: Mon, 5 May 2025 11:49:50 +0200 Subject: [PATCH] Reduce scope of mock_network fixture --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index a47e750a43b..cb527637f7e 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1325,7 +1325,7 @@ async def mqtt_mock_entry( yield _setup_mqtt_entry -@pytest.fixture(autouse=True, scope="session") +@pytest.fixture(autouse=True, scope="module") def mock_network() -> Generator[None]: """Mock network.""" with (