Skip to content

Commit

Permalink
try to fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Sep 27, 2023
1 parent 2c1867a commit 6579b9d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tests/test_national.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,11 @@ def test_read_latest_national_values_no_properties(db_session, api_client):
)
forecast.model = model

new_forecast_values = []
for f in forecast.forecast_values:
f.properties = None
new_forecast_values.append(f)
forecast.forecast_values = new_forecast_values

db_session.add(forecast)
update_all_forecast_latest(forecasts=[forecast], session=db_session)
Expand Down

0 comments on commit 6579b9d

Please sign in to comment.