From 95fd1a0848986a9e774717d9344000c980a21a4e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 27 Sep 2023 10:18:38 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/tests/test_national.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tests/test_national.py b/src/tests/test_national.py index b39e801..be992cf 100644 --- a/src/tests/test_national.py +++ b/src/tests/test_national.py @@ -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""" @@ -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())