modified the test checking if it only returns the hourly, monthly and yearly demands for building 12

This commit is contained in:
Saeed Ranjbar 2023-09-13 16:36:27 -04:00
parent cd7104206a
commit 707b42f2a9

View File

@ -30,7 +30,7 @@ class TestResultsImport(TestCase):
"""
self._example_path = (Path(__file__).parent / 'tests_data').resolve()
self._output_path = (Path(__file__).parent / 'tests_outputs').resolve()
file = 'summerschool_one_building.geojson'
file = 'test.geojson'
file_path = (self._example_path / file).resolve()
self._city = GeometryFactory('geojson',
path=file_path,
@ -96,7 +96,12 @@ class TestResultsImport(TestCase):
def test_energy_plus_results_import(self):
ResultFactory('energy_plus_workflow', self._city, self._example_path).enrich()
for building in self._city.buildings:
csv_output_name = f'{building.name}_out.csv'
csv_output_path = (self._example_path / csv_output_name).resolve()
if csv_output_path.is_file():
print(building.name)
print(building.heating_demand)
print(building.heating_demand.keys())
print(building.cooling_demand)
print(building.cooling_demand.keys())