💚 Fix unit test

This commit is contained in:
Gina Häußge committed 2020-04-20 21:18:05 +02:00
1 parent e6336c62ab
commit 5cb7fa4dc9
1 file changed
+3 -1
+3 -1
View File
@@ -5,6 +5,8 @@ import unittest
import ddt
import mock
from octoprint.util.platform import CLOSE_FDS
import _fixups
OCTOPI_VERSION = "0.14.0"
@@ -44,7 +46,7 @@ class PiSupportTestCase(unittest.TestCase):
m.return_value = "throttled=0x70005"
state = get_vcgencmd_throttled_state(VCGENCMD)
m.assert_called_once_with(VCGENCMD)
m.assert_called_once_with(VCGENCMD, close_fds=CLOSE_FDS)
self.assertTrue(state.current_undervoltage)
self.assertFalse(state.current_overheat)
self.assertTrue(state.current_issue)