Skip to content

Commit

Permalink
fix: Fix tests on Python 3.12.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjw committed Nov 22, 2023
1 parent 538245b commit 076631e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_bme280.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_create_sensor(self, mock_smbus, mock_bme280):
metrics = Metrics()
sensor = BME280Sensor()

self.assert_(sensor.initialise(metrics))
self.assertTrue(sensor.initialise(metrics))

self.assertEqual(sensor.measure(metrics), 1.0)
self.assertIn(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_icp10125.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_create_sensor(self, mock_icp10125):
metrics = Metrics()
sensor = ICP10125Sensor()

self.assert_(sensor.initialise(metrics))
self.assertTrue(sensor.initialise(metrics))

self.assertEqual(sensor.measure(metrics), 1.0)
self.assertIn(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sgp30.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_create_sensor(self, mock_sgp30):
metrics = Metrics()
sensor = SGP30Sensor()

self.assert_(sensor.initialise(metrics))
self.assertTrue(sensor.initialise(metrics))

self.assertEqual(sensor.measure(metrics), 1.0)
self.assertEqual(sensor.measure(metrics), 1.0)
Expand Down

0 comments on commit 076631e

Please sign in to comment.