mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Don't mock deprecated property
This property is deprecated. It's no longer used by the Build Volume code. Apparently it was unnecessary, too. Done during Turbo Testing and Tooling.
This commit is contained in:
parent
e7371bd741
commit
90de482313
1 changed files with 5 additions and 7 deletions
|
@ -1,3 +1,6 @@
|
|||
# Copyright (c) 2020 Ultimaker B.V.
|
||||
# Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
from unittest.mock import MagicMock, patch
|
||||
import pytest
|
||||
|
||||
|
@ -6,9 +9,6 @@ from UM.Math.Vector import Vector
|
|||
from cura.BuildVolume import BuildVolume, PRIME_CLEARANCE
|
||||
import numpy
|
||||
|
||||
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def build_volume() -> BuildVolume:
|
||||
mocked_application = MagicMock()
|
||||
|
@ -161,12 +161,10 @@ class TestUpdateRaftThickness:
|
|||
return properties.get(args[2])
|
||||
|
||||
def createMockedStack(self):
|
||||
mocked_global_stack = MagicMock(name="mocked_global_stack")
|
||||
mocked_global_stack.getProperty = MagicMock(side_effect=self.getPropertySideEffect)
|
||||
mocked_global_stack = MagicMock(name = "mocked_global_stack")
|
||||
mocked_global_stack.getProperty = MagicMock(side_effect = self.getPropertySideEffect)
|
||||
extruder_stack = MagicMock()
|
||||
|
||||
mocked_global_stack.extruders = {"0": extruder_stack}
|
||||
|
||||
return mocked_global_stack
|
||||
|
||||
def test_simple(self, build_volume: BuildVolume):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue