From 1916d21c4e571d7ca344f52014cb54993b5c161d Mon Sep 17 00:00:00 2001 From: guille Date: Tue, 9 Jan 2024 10:32:47 +0100 Subject: [PATCH] restore unittests after debug is completed --- hub/catalog_factories/usage_catalog_factory.py | 7 ------- tests/test_usage_catalog.py | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/hub/catalog_factories/usage_catalog_factory.py b/hub/catalog_factories/usage_catalog_factory.py index b7314de3..ce015a35 100644 --- a/hub/catalog_factories/usage_catalog_factory.py +++ b/hub/catalog_factories/usage_catalog_factory.py @@ -56,10 +56,3 @@ class UsageCatalogFactory: :return: Catalog """ return getattr(self, self._catalog_type, lambda: None) - @property - def catalog_debug(self) -> Catalog: - """ - Enrich the city given to the class using the class given handler - :return: Catalog - """ - return NrcanCatalog(self._path) diff --git a/tests/test_usage_catalog.py b/tests/test_usage_catalog.py index 81742ceb..2d927372 100644 --- a/tests/test_usage_catalog.py +++ b/tests/test_usage_catalog.py @@ -17,7 +17,7 @@ class TestConstructionCatalog(TestCase): self.assertEqual(32, len(content.usages), 'Wrong number of usages') def test_nrcan_catalog(self): - catalog = UsageCatalogFactory('nrcan').catalog_debug + catalog = UsageCatalogFactory('nrcan').catalog self.assertIsNotNone(catalog, 'catalog is none') content = catalog.entries() self.assertEqual(34, len(content.usages), 'Wrong number of usages')