Use yield_fixture for fixtures with teardown

Otherwise it'll complain that it can't use yield.

Contributes to issue CURA-3497.
This commit is contained in:
Ghostkeeper 2017-04-07 13:13:12 +02:00
parent 0fe1b54588
commit 46f3b5bd97
No known key found for this signature in database
GPG Key ID: C5F96EE2BC0F7E75

View File

@ -48,7 +48,7 @@ class MockContainer:
propertyChanged = unittest.mock.MagicMock()
## Fake container registry that always provides all containers you ask of.
@pytest.fixture()
@pytest.yield_fixture()
def container_registry():
registry = unittest.mock.MagicMock()