diff --git a/tests/conftest.py b/tests/conftest.py index e117c63..8291877 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -134,7 +134,7 @@ def sites(db_session): def generation_db_values(db_session, sites, init_timestamp): """Create some fake generations""" - n = 20*25 # 25 hours of readings + n = 450 # 22.5 hours of readings start_times = [init_timestamp - dt.timedelta(minutes=x * 3) for x in range(n)] # remove some of the most recent readings (to simulate missing timestamps) diff --git a/tests/test_adjuster.py b/tests/test_adjuster.py index e463592..50a6859 100644 --- a/tests/test_adjuster.py +++ b/tests/test_adjuster.py @@ -94,7 +94,7 @@ def test_adjust_forecast_with_adjuster(db_session, sites, generation_db_values, assert len(forecast_values_df) == 5 assert forecast_values_df["forecast_power_kw"][0:4].sum() == 10 assert forecast_values_df["forecast_power_kw"][4] != 5 - # note the way the tests are setup, only the horizon_minutes=1200 has some ME values + # note the way the tests are setup, only the horizon_minutes=90 has some ME values def test_adjust_forecast_with_adjuster_no_values(db_session, sites):