Skip to content

Commit

Permalink
Fix test_state test
Browse files Browse the repository at this point in the history
  • Loading branch information
m-czernek committed Mar 15, 2024
1 parent 392398c commit c7ecccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/pytests/unit/modules/state/test_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ def test_show_states_missing_sls():
chunks_mock = MagicMock(side_effect=[msg])
mock = MagicMock(side_effect=["A", None])
with patch.object(state, "_check_queue", mock), patch(
"salt.state.HighState.compile_low_chunks", chunks_mock
"salt.modules.state.salt.state.HighState.compile_low_chunks", chunks_mock
):
assert state.show_low_sls("foo") == "A"
assert state.show_states("foo") == [msg[0]]
Expand Down

0 comments on commit c7ecccb

Please sign in to comment.