Skip to content

Commit

Permalink
Changing end to get 24h and fix assert condition to detect NaN.
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
  • Loading branch information
victorgarcia98 committed May 2, 2023
1 parent c36b904 commit 3ad4113
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def test_tibber_reporter(tibber_test_data):

result = tibber_reporter.compute(
start=datetime(2023, 4, 13, tzinfo=utc),
end=datetime(2023, 4, 13, 23, tzinfo=utc),
end=datetime(2023, 4, 14, tzinfo=utc),
)

# check that we got a result for 24 hours
Expand All @@ -264,4 +264,4 @@ def test_tibber_reporter(tibber_test_data):
error = abs(result - tibber_app_price_df)

# check that (EPEX + EnergyTax + Tibber Tariff)*(1 + VAT) = Tibber App Price
assert error.sum()[0] == 0
assert error.sum(min_count=1).event_value == 0

0 comments on commit 3ad4113

Please sign in to comment.