mirror of
https://github.com/naruxde/revpimodio2.git
synced 2025-11-08 13:53:53 +01:00
test: Update wd_toggle test for connect 4
This function will now raise a NotImplementedError.
This commit is contained in:
@@ -49,7 +49,7 @@ class TestRevPi4(TestRevPiModIO):
|
|||||||
self.assertIsInstance(rpi.core.temperature, int)
|
self.assertIsInstance(rpi.core.temperature, int)
|
||||||
self.assertIsInstance(rpi.core.frequency, int)
|
self.assertIsInstance(rpi.core.frequency, int)
|
||||||
|
|
||||||
with self.assertRaises(AttributeError):
|
with self.assertRaises(NotImplementedError):
|
||||||
rpi.core.wd_toggle()
|
rpi.core.wd_toggle()
|
||||||
|
|
||||||
with self.assertRaisesRegex(AttributeError, r"direct assignment is not supported"):
|
with self.assertRaisesRegex(AttributeError, r"direct assignment is not supported"):
|
||||||
|
|||||||
Reference in New Issue
Block a user