mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 10:45:59 +08:00
Remove superfluous output_value parameter
It's not used any more since we don't test the actual instance container any more. Contributes to issue CURA-3497.
This commit is contained in:
parent
7f1930d452
commit
2161cf9f52
@ -536,14 +536,14 @@ def test_setNextStack(global_stack):
|
|||||||
global_stack.setNextStack(unittest.mock.MagicMock())
|
global_stack.setNextStack(unittest.mock.MagicMock())
|
||||||
|
|
||||||
## Tests setting properties directly on the global stack.
|
## Tests setting properties directly on the global stack.
|
||||||
@pytest.mark.parametrize("key, property, value, output_value", [
|
@pytest.mark.parametrize("key, property, value", [
|
||||||
("layer_height", "value", 0.1337, 0.1337),
|
("layer_height", "value", 0.1337),
|
||||||
("foo", "value", 100, 100),
|
("foo", "value", 100),
|
||||||
("support_enabled", "value", True, True),
|
("support_enabled", "value", True),
|
||||||
("layer_height", "default_value", 0.1337, 0.1337),
|
("layer_height", "default_value", 0.1337),
|
||||||
("layer_height", "is_bright_pink", "of course", "of course")
|
("layer_height", "is_bright_pink", "of course")
|
||||||
])
|
])
|
||||||
def test_setPropertyUser(key, property, value, output_value, global_stack):
|
def test_setPropertyUser(key, property, value, global_stack):
|
||||||
user_changes = unittest.mock.MagicMock()
|
user_changes = unittest.mock.MagicMock()
|
||||||
user_changes.getMetaDataEntry = unittest.mock.MagicMock(return_value = "user")
|
user_changes.getMetaDataEntry = unittest.mock.MagicMock(return_value = "user")
|
||||||
global_stack.userChanges = user_changes
|
global_stack.userChanges = user_changes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user