Skip to content

Commit

Permalink
fix test missing safe_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
roflcoopter committed Mar 16, 2024
1 parent e69fad5 commit 802ca27
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_setup_viseron_nvr_loaded(vis, caplog):
NVR_DOMAIN: {},
},
}
mocked_viseron = MagicMock(data=data, spec=["setup"])
mocked_viseron = MagicMock(data=data)

with patch("viseron.Viseron", return_value=mocked_viseron):
with patch("viseron.setup_components") as mocked_setup_components:
Expand Down Expand Up @@ -77,7 +77,7 @@ def test_setup_viseron_nvr_missing(vis, caplog):
NVR_DOMAIN: {},
},
}
mocked_viseron = MagicMock(data=data, spec=["setup"])
mocked_viseron = MagicMock(data=data)

with patch("viseron.Viseron", return_value=mocked_viseron):
with patch("viseron.setup_components") as mocked_setup_components:
Expand Down Expand Up @@ -110,7 +110,7 @@ def test_setup_viseron_cameras_missing(caplog):
LOADED: {},
DOMAINS_TO_SETUP: {},
}
mocked_viseron = MagicMock(data=data, spec=["setup"])
mocked_viseron = MagicMock(data=data)

with patch("viseron.Viseron", return_value=mocked_viseron):
with patch("viseron.setup_components") as mocked_setup_components:
Expand All @@ -135,7 +135,7 @@ def test_setup_viseron_cameras_missing_nvr_loaded(caplog):
LOADED: {NVR_COMPONENT: "Testing"},
DOMAINS_TO_SETUP: {},
}
mocked_viseron = MagicMock(data=data, spec=["setup"])
mocked_viseron = MagicMock(data=data)

with patch("viseron.Viseron", return_value=mocked_viseron):
with patch("viseron.setup_components") as mocked_setup_components:
Expand Down

0 comments on commit 802ca27

Please sign in to comment.