Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 27, 2023
1 parent 93c0e8a commit 95fd1a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tests/test_national.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def test_get_national_forecast(db_session, api_client):
!= national_forecast.forecast_values[0].expected_power_generation_megawatts * 0.9
)


def test_read_latest_national_values_start_and_end_filters_inculde_metadata(db_session, api_client):
"""Check main solar/GB/national/forecast route works"""

Expand All @@ -146,7 +147,9 @@ def test_read_latest_national_values_start_and_end_filters_inculde_metadata(db_s

app.dependency_overrides[get_session] = lambda: db_session

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

national_forecast = NationalForecast(**response.json())
Expand Down

0 comments on commit 95fd1a0

Please sign in to comment.