Refactor tests

This commit is contained in:
Roman Mogylatov 2018-07-26 10:08:46 +03:00
parent cc35e1fdb2
commit 4bfaf92099

View File

@ -279,7 +279,7 @@ class DeclarativeContainerTests(unittest.TestCase):
# Bug: # Bug:
# https://github.com/ets-labs/python-dependency-injector/issues/198 # https://github.com/ets-labs/python-dependency-injector/issues/198
class _Container(containers.DeclarativeContainer): class _Container(containers.DeclarativeContainer):
p1 = providers.Object(1) p1 = providers.Dependency(instance_of=int)
p2 = providers.Dependency(object) p2 = providers.Dependency(object)
p2.override(providers.Factory(dict, p1=p1)) p2.override(providers.Factory(dict, p1=p1))