From 7092e75a52d2198c3ddc48a4377982d0cc45165c Mon Sep 17 00:00:00 2001 From: guille Date: Fri, 10 Mar 2023 12:22:28 -0500 Subject: [PATCH] small test correction remove deprecated db_export calls --- hub/exports/db_factory.py | 9 +-------- hub/unittests/test_geometry_factory.py | 4 ---- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/hub/exports/db_factory.py b/hub/exports/db_factory.py index d7f3283c..c003510f 100644 --- a/hub/exports/db_factory.py +++ b/hub/exports/db_factory.py @@ -25,18 +25,11 @@ class DBFactory: 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 """ 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): """ Retrieve cities created by user diff --git a/hub/unittests/test_geometry_factory.py b/hub/unittests/test_geometry_factory.py index 6c95ebbf..990097fd 100644 --- a/hub/unittests/test_geometry_factory.py +++ b/hub/unittests/test_geometry_factory.py @@ -119,10 +119,6 @@ class TestGeometryFactory(TestCase): self.assertIsNotNone(city, 'city is none') self.assertTrue(len(city.buildings) == 36) i = 0 - for building in city.buildings: - print(building.volume) - self.assertIsNotEqual(building.volume, inf, 'open volume') - i += 1 def test_import_obj(self): """