diff --git a/tests/test_results_import.py b/tests/test_results_import.py index e3498079..775ae083 100644 --- a/tests/test_results_import.py +++ b/tests/test_results_import.py @@ -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: - print(building.name) - print(building.heating_demand) - print(building.cooling_demand) + 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())