From 4bfaf920990a1e9da23f8e7c0a1323b0b37b2e00 Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Thu, 26 Jul 2018 10:08:46 +0300 Subject: [PATCH] Refactor tests --- tests/unit/containers/test_declarative.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/containers/test_declarative.py b/tests/unit/containers/test_declarative.py index 3b8d0ff6..d510d7ad 100644 --- a/tests/unit/containers/test_declarative.py +++ b/tests/unit/containers/test_declarative.py @@ -279,7 +279,7 @@ class DeclarativeContainerTests(unittest.TestCase): # Bug: # https://github.com/ets-labs/python-dependency-injector/issues/198 class _Container(containers.DeclarativeContainer): - p1 = providers.Object(1) + p1 = providers.Dependency(instance_of=int) p2 = providers.Dependency(object) p2.override(providers.Factory(dict, p1=p1))