File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ def test_get_vcgencmd_throttle_state(self):
55
55
from octoprint_pi_support import get_vcgencmd_throttled_state
56
56
57
57
with mock .patch ("sarge.get_both" , mock .MagicMock ()) as m :
58
- m .return_value = "throttled=0x70005"
58
+ m .return_value = ( "throttled=0x70005" , "" )
59
59
state = get_vcgencmd_throttled_state (VCGENCMD )
60
60
61
61
m .assert_called_once_with (VCGENCMD , close_fds = CLOSE_FDS )
@@ -70,7 +70,7 @@ def test_get_vcgencmd_throttle_state_unparseable1(self):
70
70
from octoprint_pi_support import get_vcgencmd_throttled_state
71
71
72
72
with mock .patch ("sarge.get_both" , mock .MagicMock ()) as m :
73
- m .return_value = " invalid"
73
+ m .return_value = ( "" , " invalid")
74
74
75
75
try :
76
76
get_vcgencmd_throttled_state (VCGENCMD )
@@ -84,7 +84,7 @@ def test_get_vcgencmd_throttle_state_unparseable2(self):
84
84
from octoprint_pi_support import get_vcgencmd_throttled_state
85
85
86
86
with mock .patch ("sarge.get_both" , mock .MagicMock ()) as m :
87
- m .return_value = "throttled=0xinvalid"
87
+ m .return_value = ( "throttled=0xinvalid" , "" )
88
88
89
89
try :
90
90
get_vcgencmd_throttled_state (VCGENCMD )
You can’t perform that action at this time.
0 commit comments