Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Sep 27, 2023
1 parent 41e9127 commit 3224279
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/test_national.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,15 @@ def test_read_latest_national_values_start_and_end_filters_inculde_metadata(db_s
assert response.status_code == 200

national_forecast = NationalForecast(**response.json())
assert len(national_forecasts.forecast_values) == 16
assert len(national_forecast.forecast_values) == 16

response = api_client.get(
"/v0/solar/GB/national/forecast?start_datetime_utc=2023-01-01&end_datetime_utc=2023-01-01 04:00&include_metadata=true" # noqa
)
assert response.status_code == 200

national_forecast = NationalForecast(**response.json())
assert len(national_forecasts.forecast_values) == 9
assert len(national_forecast.forecast_values) == 9


def test_get_national_forecast_error(db_session, api_client):
Expand Down

0 comments on commit 3224279

Please sign in to comment.