mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06: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
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class MockContainer:
|
||||||
propertyChanged = unittest.mock.MagicMock()
|
propertyChanged = unittest.mock.MagicMock()
|
||||||
|
|
||||||
## Fake container registry that always provides all containers you ask of.
|
## Fake container registry that always provides all containers you ask of.
|
||||||
@pytest.fixture()
|
@pytest.yield_fixture()
|
||||||
def container_registry():
|
def container_registry():
|
||||||
registry = unittest.mock.MagicMock()
|
registry = unittest.mock.MagicMock()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue