Skip to content

Commit

Permalink
revert tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dfulu committed Oct 20, 2023
1 parent 400b043 commit e4f1b0b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ def test_app(db_session, nwp_data, sat_data, gsp_yields_and_systems, me_latest):
app(gsp_ids=list(range(1, 318)))

# Check forecasts have been made
# (317 GSPs + 1 National + 1 GSP-sum) = 319 forecasts
# (317 GSPs + 1 National) = 318 forecasts
# Doubled for historic and forecast
forecasts = db_session.query(ForecastSQL).all()
assert len(forecasts) == 319 * 2
assert len(forecasts) == 318 * 2

# Check probabilistic added
assert "90" in forecasts[0].forecast_values[0].properties
assert "10" in forecasts[0].forecast_values[0].properties

# 318 GSPs * 16 time steps in forecast
assert len(db_session.query(ForecastValueSQL).all()) == 319 * 16
assert len(db_session.query(ForecastValueLatestSQL).all()) == 319 * 16
assert len(db_session.query(ForecastValueSevenDaysSQL).all()) == 319 * 16
assert len(db_session.query(ForecastValueSQL).all()) == 318 * 16
assert len(db_session.query(ForecastValueLatestSQL).all()) == 318 * 16
assert len(db_session.query(ForecastValueSevenDaysSQL).all()) == 318 * 16

0 comments on commit e4f1b0b

Please sign in to comment.