Skip to content

Commit

Permalink
chore: Fix PM25 tests (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjw authored Jan 12, 2025
1 parent b6b7564 commit eabe26b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_pm25.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@

from breakoutgardenexporter import PM25Sensor, Metrics

import breakoutgardenexporter.pm25

# Needed to fix tests in GitHub actions.
if not hasattr(breakoutgardenexporter.pm25.board, "SCL"):
breakoutgardenexporter.pm25.board.SCL = 0
if not hasattr(breakoutgardenexporter.pm25.board, "SDA"):
breakoutgardenexporter.pm25.board.SDA = 0

SAMPLE_DATA = {'pm10 standard': 2,
'pm25 standard': 3,
Expand Down

0 comments on commit eabe26b

Please sign in to comment.