Skip to content

Commit

Permalink
test: fix test_get_status_systemd_failure
Browse files Browse the repository at this point in the history
"uses_systemd" wasn't mocked
  • Loading branch information
TheRealFalcon authored and blackboxsw committed Feb 27, 2024
1 parent 1447bfe commit d8b6ac2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/unittests/cmd/test_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,16 @@ def test_get_status_details_ds_none(
f"{M_PATH}systemd_failed",
return_value=True,
)
@mock.patch(
f"{M_PATH}uses_systemd",
return_value=True,
)
def test_get_status_systemd_failure(
self,
m_uses_systemd,
m_systemd_status,
m_boot_status,
m_is_running,
m_p_exists,
m_load_json,
tmpdir,
Expand Down

0 comments on commit d8b6ac2

Please sign in to comment.