changed _city_debug with city

This commit is contained in:
Pilar 2021-04-07 14:39:50 -04:00
parent 82f029684e
commit d6e09585ac
2 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ class TestGeometryFactory(TestCase):
def _get_citygml(self, file): def _get_citygml(self, file):
if self._city_gml is None: if self._city_gml is None:
file_path = (self._example_path / file).resolve() file_path = (self._example_path / file).resolve()
self._city_gml = GeometryFactory('citygml', file_path)._city_debug self._city_gml = GeometryFactory('citygml', file_path).city
self.assertIsNotNone(self._city_gml, 'city is none') self.assertIsNotNone(self._city_gml, 'city is none')
return self._city_gml return self._city_gml
@ -198,7 +198,7 @@ class TestGeometryFactory(TestCase):
:return: :return:
""" """
file = (self._example_path / 'gml_17_12_2020.gml').resolve() file = (self._example_path / 'gml_17_12_2020.gml').resolve()
city = GeometryFactory('citygml', file)._city_debug city = GeometryFactory('citygml', file).city
counter = 0 counter = 0
for building in city.buildings: for building in city.buildings:

View File

@ -25,7 +25,7 @@ class MyTestCase(TestCase):
def _get_city(self): def _get_city(self):
if self._city_obj is None: if self._city_obj is None:
file_path = (self._example_path / 'kelowna.obj').resolve() file_path = (self._example_path / 'kelowna.obj').resolve()
self._city_obj = GeometryFactory('obj', file_path)._city_debug self._city_obj = GeometryFactory('obj', file_path).city
return self._city_obj return self._city_obj
def test_import_obj(self): def test_import_obj(self):