diff --git a/hub/unittests/test_exports.py b/hub/unittests/test_exports.py index 7fa84103..7cf35a4c 100644 --- a/hub/unittests/test_exports.py +++ b/hub/unittests/test_exports.py @@ -100,13 +100,15 @@ class TestExports(TestCase): """ export to IDF """ - city = self._get_citygml('EV_GM_MB_LoD2.gml') - for building in city.buildings: - building.year_of_construction = 2006 - if building.function is None: - building.function = 'large office' - ConstructionFactory('nrel', city).enrich() - UsageFactory('comnet', city).enrich() + file = 'FZK_Haus_LoD_2.gml' + file_path = (self._example_path / file).resolve() + city = GeometryFactory('citygml', + path=file_path, + function_to_hub=Dictionaries().alkis_function_to_hub_function).city + self.assertIsNotNone(city, 'city is none') + ConstructionFactory('nrcan', city=city) + ConstructionFactory('nrcan', city).enrich() + UsageFactory('nrcan', city).enrich() try: EnergyBuildingsExportsFactory('idf', city, self._output_path).export() EnergyBuildingsExportsFactory('idf', city, self._output_path,