Skip to content

Commit

Permalink
Implement review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
MKLeb authored and s0undt3ch committed Nov 13, 2023
1 parent e0e6546 commit eda790d
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 103 deletions.
5 changes: 2 additions & 3 deletions tests/pytests/unit/utils/parsers/test_daemon_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
@pytest.fixture
def daemon_mixin():
mixin = salt.utils.parsers.DaemonMixIn()
mixin.config = {}
mixin.config["pidfile"] = "/some/fake.pid"
mixin.config = {"pidfile": "/some/fake.pid"}
return mixin


Expand All @@ -26,7 +25,7 @@ def test_pid_file_deletion(daemon_mixin):
with patch("os.path.isfile", MagicMock(return_value=True)):
with patch("salt.utils.parsers.log", MagicMock()) as log_mock:
daemon_mixin._mixin_before_exit()
assert unlink_mock.call_count == 1
unlink_mock.assert_called_once()
log_mock.info.assert_not_called()
log_mock.debug.assert_not_called()

Expand Down
Loading

0 comments on commit eda790d

Please sign in to comment.