Skip to content

Commit

Permalink
Update test_hardware_definitions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shawaj authored Oct 27, 2024
1 parent a2c867b commit 62ceb46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hm_pyhelper/tests/test_hardware_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())

0 comments on commit 62ceb46

Please sign in to comment.