correct the unit tests

This commit is contained in:
Guille Gutierrez 2024-03-12 16:21:43 +01:00
parent 11d493ba0e
commit bf23730281
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class MontrealGenerationSystemToHubEnergyGenerationSystem:
'electricity generator': cte.ELECTRICITY_GENERATOR, 'electricity generator': cte.ELECTRICITY_GENERATOR,
'PV system': cte.PHOTOVOLTAIC, 'PV system': cte.PHOTOVOLTAIC,
'heat pump': cte.HEAT_PUMP 'heat pump': cte.HEAT_PUMP
} }
@property @property
def dictionary(self) -> dict: def dictionary(self) -> dict:

View File

@ -83,7 +83,7 @@ class MontrealCustomEnergySystemParameters:
def _create_generation_systems(archetype_system): def _create_generation_systems(archetype_system):
_generation_systems = [] _generation_systems = []
for archetype_generation_system in archetype_system.generation_systems: for archetype_generation_system in archetype_system.generation_systems:
if archetype_generation_system.system_type == 'PV system': if archetype_generation_system.system_type == 'Photovoltaic':
_generation_system = PvGenerationSystem() _generation_system = PvGenerationSystem()
_type = 'PV system' _type = 'PV system'
_generation_system.system_type = Dictionaries().montreal_generation_system_to_hub_energy_generation_system[_type] _generation_system.system_type = Dictionaries().montreal_generation_system_to_hub_energy_generation_system[_type]