From a3bf594071884055b8f41264d4cd7563236e659f Mon Sep 17 00:00:00 2001 From: guille Date: Tue, 8 Aug 2023 10:10:04 -0400 Subject: [PATCH] correct unittest --- .../helpers/construction_helper.py | 3 ++- tests/test_db_factory.py | 20 +++++++++---------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/hub/imports/construction/helpers/construction_helper.py b/hub/imports/construction/helpers/construction_helper.py index 5d697354..379bb336 100644 --- a/hub/imports/construction/helpers/construction_helper.py +++ b/hub/imports/construction/helpers/construction_helper.py @@ -38,7 +38,8 @@ class ConstructionHelper: 'Levis': '7A', 'Quebec City': '7A', 'Kelowna': '5', - 'Park Slope': '4' + 'Park Slope': '4', + 'Varennes': '6' } _reference_city_to_israel_climate_zone = { diff --git a/tests/test_db_factory.py b/tests/test_db_factory.py index 6f760bbc..e39b4186 100644 --- a/tests/test_db_factory.py +++ b/tests/test_db_factory.py @@ -256,16 +256,16 @@ TestDBFactory {'yearly_lighting_peak_load': yearly_lighting_peak_load}, {'monthly_appliances_peak_load': monthly_appliances_peak_load}, {'yearly_appliances_peak_load': yearly_appliances_peak_load}, - {'monthly_cooling_demand': monthly_cooling_demand.tolist()}, - {'yearly_cooling_demand': yearly_cooling_demand.tolist()}, - {'monthly_heating_demand': monthly_heating_demand.tolist()}, - {'yearly_heating_demand': yearly_heating_demand.tolist()}, - {'monthly_lighting_electrical_demand': monthly_lighting_electrical_demand.tolist()}, - {'yearly_lighting_electrical_demand': yearly_lighting_electrical_demand.tolist()}, - {'monthly_appliances_electrical_demand': monthly_appliances_electrical_demand.tolist()}, - {'yearly_appliances_electrical_demand': yearly_appliances_electrical_demand.tolist()}, - {'monthly_domestic_hot_water_heat_demand': monthly_domestic_hot_water_heat_demand.tolist()}, - {'yearly_domestic_hot_water_heat_demand': yearly_domestic_hot_water_heat_demand.tolist()}, + {'monthly_cooling_demand': monthly_cooling_demand}, + {'yearly_cooling_demand': yearly_cooling_demand}, + {'monthly_heating_demand': monthly_heating_demand}, + {'yearly_heating_demand': yearly_heating_demand}, + {'monthly_lighting_electrical_demand': monthly_lighting_electrical_demand}, + {'yearly_lighting_electrical_demand': yearly_lighting_electrical_demand}, + {'monthly_appliances_electrical_demand': monthly_appliances_electrical_demand}, + {'yearly_appliances_electrical_demand': yearly_appliances_electrical_demand}, + {'monthly_domestic_hot_water_heat_demand': monthly_domestic_hot_water_heat_demand}, + {'yearly_domestic_hot_water_heat_demand': yearly_domestic_hot_water_heat_demand}, {'monthly_heating_consumption': monthly_heating_consumption}, {'yearly_heating_consumption': yearly_heating_consumption}, {'monthly_cooling_consumption': monthly_cooling_consumption},