mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 21:09:01 +08:00
ExtruderStack requires a next stack, so make sure it has that in tests
This commit is contained in:
parent
d29ae60d38
commit
0c232c9462
@ -263,6 +263,7 @@ def test_getPropertyFallThrough(extruder_stack):
|
|||||||
extruder_stack.variant = mock_no_settings[container_indices.Variant]
|
extruder_stack.variant = mock_no_settings[container_indices.Variant]
|
||||||
with unittest.mock.patch("cura.Settings.CuraContainerStack.DefinitionContainer", unittest.mock.MagicMock): #To guard against the type checking.
|
with unittest.mock.patch("cura.Settings.CuraContainerStack.DefinitionContainer", unittest.mock.MagicMock): #To guard against the type checking.
|
||||||
extruder_stack.definition = mock_layer_heights[container_indices.Definition] #There's a layer height in here!
|
extruder_stack.definition = mock_layer_heights[container_indices.Definition] #There's a layer height in here!
|
||||||
|
extruder_stack.setNextStack(unittest.mock.MagicMock())
|
||||||
|
|
||||||
assert extruder_stack.getProperty("layer_height", "value") == container_indices.Definition
|
assert extruder_stack.getProperty("layer_height", "value") == container_indices.Definition
|
||||||
extruder_stack.variant = mock_layer_heights[container_indices.Variant]
|
extruder_stack.variant = mock_layer_heights[container_indices.Variant]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user