mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-23 22:29:41 +08:00
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:
parent
0fe1b54588
commit
46f3b5bd97
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user