From 5cb7fa4dc9b47e22a6829ad0b3f462b1e36ee62d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 20 Apr 2020 21:18:05 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Fix=20unit=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/plugins/pi_support/test_pi_support.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/plugins/pi_support/test_pi_support.py b/tests/plugins/pi_support/test_pi_support.py index eb29a0419..88ae8c90c 100644 --- a/tests/plugins/pi_support/test_pi_support.py +++ b/tests/plugins/pi_support/test_pi_support.py @@ -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)