restore unittests after debug is completed

This commit is contained in:
Guille Gutierrez 2024-01-09 10:32:47 +01:00
parent 57388a9dc4
commit 1916d21c4e
2 changed files with 1 additions and 8 deletions

View File

@ -56,10 +56,3 @@ class UsageCatalogFactory:
:return: Catalog :return: Catalog
""" """
return getattr(self, self._catalog_type, lambda: None) 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)

View File

@ -17,7 +17,7 @@ class TestConstructionCatalog(TestCase):
self.assertEqual(32, len(content.usages), 'Wrong number of usages') self.assertEqual(32, len(content.usages), 'Wrong number of usages')
def test_nrcan_catalog(self): def test_nrcan_catalog(self):
catalog = UsageCatalogFactory('nrcan').catalog_debug catalog = UsageCatalogFactory('nrcan').catalog
self.assertIsNotNone(catalog, 'catalog is none') self.assertIsNotNone(catalog, 'catalog is none')
content = catalog.entries() content = catalog.entries()
self.assertEqual(34, len(content.usages), 'Wrong number of usages') self.assertEqual(34, len(content.usages), 'Wrong number of usages')