UT: Use container fixture in test_unregistered_type

This commit is contained in:
Mike Salvatore 2022-06-17 07:24:48 -04:00
parent a18814a83b
commit 42f0cb42d2
1 changed files with 1 additions and 2 deletions

View File

@ -112,8 +112,7 @@ def test_register_mixed_instance_and_type(container):
assert id(test_2.service_b) != id(test_3.service_b) assert id(test_2.service_b) != id(test_3.service_b)
def test_unregistered_type(): def test_unregistered_type(container):
container = DIContainer()
with pytest.raises(ValueError): with pytest.raises(ValueError):
container.resolve(TestClass1) container.resolve(TestClass1)