small test correction remove deprecated db_export calls

This commit is contained in:
Guille Gutierrez 2023-03-10 12:22:28 -05:00
parent 42a0d3887c
commit 7092e75a52
2 changed files with 1 additions and 12 deletions

View File

@ -25,18 +25,11 @@ class DBFactory:
def city_by_id(self, city_id): def city_by_id(self, city_id):
""" """
Retrieve a single city from postgres Retrieve a single city using the id
:param city_id: the id of the city to get :param city_id: the id of the city to get
""" """
return self._city.get_by_id(city_id) return self._city.get_by_id(city_id)
def city_by_name(self, city_name):
"""
Retrieve a single city from postgres
:param city_name: the name of the city to get
"""
return self._city.get_by_name(city_name)
def cities_by_user(self, user_id): def cities_by_user(self, user_id):
""" """
Retrieve cities created by user Retrieve cities created by user

View File

@ -119,10 +119,6 @@ class TestGeometryFactory(TestCase):
self.assertIsNotNone(city, 'city is none') self.assertIsNotNone(city, 'city is none')
self.assertTrue(len(city.buildings) == 36) self.assertTrue(len(city.buildings) == 36)
i = 0 i = 0
for building in city.buildings:
print(building.volume)
self.assertIsNotEqual(building.volume, inf, 'open volume')
i += 1
def test_import_obj(self): def test_import_obj(self):
""" """