merche main branch changes

This commit is contained in:
Guille Gutierrez 2022-11-21 14:21:43 -05:00
parent b357e4d6c7
commit e9b50beea8

View File

@ -30,7 +30,7 @@ class TestGeometryFactory(TestCase):
def _get_city(self, file, file_type): def _get_city(self, file, file_type):
file_path = (self._example_path / file).resolve() file_path = (self._example_path / file).resolve()
self._city = GeometryFactory(file_type, file_path).city self._city = GeometryFactory(file_type, path=file_path).city
self.assertIsNotNone(self._city, 'city is none') self.assertIsNotNone(self._city, 'city is none')
return self._city return self._city
@ -139,7 +139,7 @@ class TestGeometryFactory(TestCase):
Test geopandas import Test geopandas import
""" """
file = 'sample.geojson' file = 'sample.geojson'
city = self._get_city(file, 'geopandas') city = self._get_city(file, 'gpandas')
self.assertIsNotNone(city, 'city is none') self.assertIsNotNone(city, 'city is none')
self.assertTrue(len(city.buildings) == 1) self.assertTrue(len(city.buildings) == 1)
self._check_buildings(city) self._check_buildings(city)
@ -169,6 +169,6 @@ class TestGeometryFactory(TestCase):
:return: :return:
""" """
file = 'subway.osm' file = 'subway.osm'
city = self._get_city(file, 'geojson') city = self._get_city(file, 'osm_subway')
self.assertIsNotNone(city, 'subway entrances is none') self.assertIsNotNone(city, 'subway entrances is none')
self.assertEqual(len(city.city_objects), 20, 'Wrong number of subway entrances') self.assertEqual(len(city.city_objects), 20, 'Wrong number of subway entrances')