Skip to content

Commit a0c4d33

Browse files
committed
💚 Fix tests
1 parent 692df34 commit a0c4d33

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_pi_support.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def test_get_vcgencmd_throttle_state(self):
5555
from octoprint_pi_support import get_vcgencmd_throttled_state
5656

5757
with mock.patch("sarge.get_both", mock.MagicMock()) as m:
58-
m.return_value = "throttled=0x70005"
58+
m.return_value = ("throttled=0x70005", "")
5959
state = get_vcgencmd_throttled_state(VCGENCMD)
6060

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

7272
with mock.patch("sarge.get_both", mock.MagicMock()) as m:
73-
m.return_value = "invalid"
73+
m.return_value = ("", "invalid")
7474

7575
try:
7676
get_vcgencmd_throttled_state(VCGENCMD)
@@ -84,7 +84,7 @@ def test_get_vcgencmd_throttle_state_unparseable2(self):
8484
from octoprint_pi_support import get_vcgencmd_throttled_state
8585

8686
with mock.patch("sarge.get_both", mock.MagicMock()) as m:
87-
m.return_value = "throttled=0xinvalid"
87+
m.return_value = ("throttled=0xinvalid", "")
8888

8989
try:
9090
get_vcgencmd_throttled_state(VCGENCMD)

0 commit comments

Comments
 (0)