From 42f0cb42d2d1d3f1a4f4fae6fc65fdef5376218f Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Fri, 17 Jun 2022 07:24:48 -0400 Subject: [PATCH] UT: Use container fixture in test_unregistered_type --- monkey/tests/unit_tests/common/test_di_container.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/monkey/tests/unit_tests/common/test_di_container.py b/monkey/tests/unit_tests/common/test_di_container.py index 20f492e43..857168f82 100644 --- a/monkey/tests/unit_tests/common/test_di_container.py +++ b/monkey/tests/unit_tests/common/test_di_container.py @@ -112,8 +112,7 @@ def test_register_mixed_instance_and_type(container): assert id(test_2.service_b) != id(test_3.service_b) -def test_unregistered_type(): - container = DIContainer() +def test_unregistered_type(container): with pytest.raises(ValueError): container.resolve(TestClass1)