mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 01:26:51 +03:00
Add test for catalog module backward compatibility
This commit is contained in:
parent
524cd78c5f
commit
64bc56cbb9
|
@ -555,3 +555,14 @@ class OverrideTests(unittest.TestCase):
|
|||
|
||||
self.assertFalse(CatalogA.p11.is_overridden)
|
||||
self.assertFalse(CatalogA.p12.is_overridden)
|
||||
|
||||
|
||||
class CatalogModuleBackwardCompatibility(unittest.TestCase):
|
||||
"""Backward compatibility test of catalog module."""
|
||||
|
||||
def test_import_catalog(self):
|
||||
"""Test that module `catalog` is the same as `catalogs`."""
|
||||
from dependency_injector import catalog
|
||||
from dependency_injector import catalogs
|
||||
|
||||
self.assertIs(catalog, catalogs)
|
||||
|
|
Loading…
Reference in New Issue
Block a user