From 62ceb460feab49e88c349b7664a2ada1d6bae5dd Mon Sep 17 00:00:00 2001 From: Aaron Shaw Date: Sun, 27 Oct 2024 07:01:26 +0000 Subject: [PATCH] Update test_hardware_definitions.py --- hm_pyhelper/tests/test_hardware_definitions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hm_pyhelper/tests/test_hardware_definitions.py b/hm_pyhelper/tests/test_hardware_definitions.py index 2cc40b6..28ac383 100644 --- a/hm_pyhelper/tests/test_hardware_definitions.py +++ b/hm_pyhelper/tests/test_hardware_definitions.py @@ -196,5 +196,6 @@ def test_is_linxdot_rk3566(self): self.assertTrue(is_linxdot_rk3566()) # in absence of the env, it should look for /proc/device-tree/model # which will not exist on test environment. - with self.assertRaises(FileNotFoundError): + with patch.dict(os.environ, {'BALENA_DEVICE_TYPE': "something"}): + self.assertRaises(FileNotFoundError) self.assertFalse(is_linxdot_rk3566())