From 36478d54b4f36588a8f4db79b6e6288c245490b7 Mon Sep 17 00:00:00 2001 From: Andrew Wilkinson Date: Tue, 18 Jul 2023 21:52:19 +0100 Subject: [PATCH] fix: Fix tests. --- tests/test_sgp30.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_sgp30.py b/tests/test_sgp30.py index 4267585..bd24279 100644 --- a/tests/test_sgp30.py +++ b/tests/test_sgp30.py @@ -51,7 +51,7 @@ def test_create_sensor(self, mock_sgp30): @patch("breakoutgardenexporter.sgp30.SGP30") def test_missing_sensor(self, mock_sgp30): instance = Mock() - mock_sgp30.side_effect = RuntimeError + mock_sgp30.side_effect = OSError metrics = Metrics() sensor = SGP30Sensor()