1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 20:35:55 +00:00

Fix pytests to make them run in isolation (#5878)

This commit is contained in:
Stefan Agner
2025-05-12 12:37:09 +02:00
committed by GitHub
parent ff849ce692
commit b9bbb99f37
10 changed files with 56 additions and 17 deletions

View File

@@ -20,6 +20,12 @@ from supervisor.store.addon import AddonStore
from supervisor.store.repository import Repository
@pytest.fixture(autouse=True)
def _auto_supervisor_internet(supervisor_internet):
# Use the supervisor_internet fixture to ensure that all tests has internet access
pass
@pytest.mark.parametrize("use_update", [True, False])
async def test_add_valid_repository(
coresys: CoreSys, store_manager: StoreManager, use_update: bool