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):
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 )
You can’t perform that action at this time.
0 commit comments