mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 17:47:02 +03:00
Refactor tests
This commit is contained in:
parent
cc35e1fdb2
commit
4bfaf92099
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user