forked from s_ranjbar/city_retrofit
restore unittests after debug is completed
This commit is contained in:
parent
57388a9dc4
commit
1916d21c4e
@ -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)
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user