Skip to content

Commit

Permalink
fix iskra unit test: here message time contains timezone info
Browse files Browse the repository at this point in the history
  • Loading branch information
raymar9 committed Apr 5, 2024
1 parent 9b7058c commit 87c7b20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_iskraam550.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,5 @@ def data_received():
assert any(data.type == MeterDataPointTypes.REACTIVE_ENERGY_Q4.value for data in values)
assert any(data.type == MeterDataPointTypes.POWER_FACTOR.value for data in values)
assert all(data.source == "ISK1030775213859" for data in values)
assert all(data.timestamp.astimezone().strftime(r"%m/%d/%y %H:%M:%S") == "08/15/20 06:19:45" for data in values)
# message time comes with timezone info (+02:00)
assert all(data.timestamp.strftime(r"%m/%d/%y %H:%M:%S") == "08/15/20 04:19:45" for data in values)

0 comments on commit 87c7b20

Please sign in to comment.