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:
Ghostkeeper 2020-05-29 17:24:56 +02:00
parent e7371bd741
commit 90de482313
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -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):