Skip to content

Commit

Permalink
💚 Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
foosel committed Mar 1, 2022
1 parent 692df34 commit a0c4d33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_pi_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def test_get_vcgencmd_throttle_state(self):
from octoprint_pi_support import get_vcgencmd_throttled_state

with mock.patch("sarge.get_both", mock.MagicMock()) as m:
m.return_value = "throttled=0x70005"
m.return_value = ("throttled=0x70005", "")
state = get_vcgencmd_throttled_state(VCGENCMD)

m.assert_called_once_with(VCGENCMD, close_fds=CLOSE_FDS)
Expand All @@ -70,7 +70,7 @@ def test_get_vcgencmd_throttle_state_unparseable1(self):
from octoprint_pi_support import get_vcgencmd_throttled_state

with mock.patch("sarge.get_both", mock.MagicMock()) as m:
m.return_value = "invalid"
m.return_value = ("", "invalid")

try:
get_vcgencmd_throttled_state(VCGENCMD)
Expand All @@ -84,7 +84,7 @@ def test_get_vcgencmd_throttle_state_unparseable2(self):
from octoprint_pi_support import get_vcgencmd_throttled_state

with mock.patch("sarge.get_both", mock.MagicMock()) as m:
m.return_value = "throttled=0xinvalid"
m.return_value = ("throttled=0xinvalid", "")

try:
get_vcgencmd_throttled_state(VCGENCMD)
Expand Down

0 comments on commit a0c4d33

Please sign in to comment.