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)
def test_unregistered_type():
container = DIContainer()
def test_unregistered_type(container):
with pytest.raises(ValueError):
container.resolve(TestClass1)