diff --git a/tests/model/timeseries/demand/test_heat.py b/tests/model/timeseries/demand/test_heat.py new file mode 100644 index 00000000..fb68015c --- /dev/null +++ b/tests/model/timeseries/demand/test_heat.py @@ -0,0 +1,8 @@ +def test_unscaled_heat(unscaled_space_heat_timeseries): + """Expecting more space heating demand in winter than summer.""" + # xarray to pandas as we need a newer xarray version (with flox) for `groupby` performance. + df = unscaled_space_heat_timeseries.space_heat.to_series() + hourly_space_monthly = df.groupby(df.index.get_level_values("time").month).sum() + hourly_space_winter = hourly_space_monthly.loc[[12, 1, 2]].sum() + hourly_space_summer = hourly_space_monthly.loc[[6, 7, 8]].sum() + assert (hourly_space_winter > hourly_space_summer).all() diff --git a/tests/model/test_heat.py b/tests/model/timeseries/supply/test_cop.py similarity index 100% rename from tests/model/test_heat.py rename to tests/model/timeseries/supply/test_cop.py