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 Nov 17, 2023
1 parent 077c04d commit 29228cf
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/tests/test_national.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,11 @@ def test_get_national_forecast_null_plevels(db_session, api_client):

national_forecast = NationalForecast(**response.json())
assert national_forecast.forecast_values[0].plevels is not None
assert (
national_forecast.forecast_values[0].plevels["plevel_10"]
== round(national_forecast.forecast_values[0].expected_power_generation_megawatts * 0.8,2)
assert national_forecast.forecast_values[0].plevels["plevel_10"] == round(
national_forecast.forecast_values[0].expected_power_generation_megawatts * 0.8, 2
)
assert (
national_forecast.forecast_values[1].plevels["plevel_10"]
== round(national_forecast.forecast_values[1].expected_power_generation_megawatts * 0.8,2)

assert national_forecast.forecast_values[1].plevels["plevel_10"] == round(
national_forecast.forecast_values[1].expected_power_generation_megawatts * 0.8, 2
)


Expand Down

0 comments on commit 29228cf

Please sign in to comment.