mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 21:38:58 +08:00
Fix setPropertyUser test with the right container and parameter order of setProperty
This commit is contained in:
parent
87ce6246d8
commit
3620ce4c0a
@ -546,10 +546,9 @@ def test_setNextStack(global_stack):
|
|||||||
("layer_height", "default_value", 0.1337, 0.1337),
|
("layer_height", "default_value", 0.1337, 0.1337),
|
||||||
("layer_height", "is_bright_pink", "of course", "of course")
|
("layer_height", "is_bright_pink", "of course", "of course")
|
||||||
])
|
])
|
||||||
def test_setPropertyUser(key, property, value, output_value, global_stack):
|
def test_setPropertyUser(key, property, value, output_value, writable_global_stack):
|
||||||
global_stack.setUserChanges(MockContainer(global_stack.id + "_user", "user"))
|
writable_global_stack.setProperty(key, property, value)
|
||||||
global_stack.setProperty(key, value, property)
|
assert writable_global_stack.userChanges.getProperty(key, property) == output_value
|
||||||
assert global_stack.userChanges.getProperty(key, property) == output_value
|
|
||||||
|
|
||||||
## Tests setting properties on specific containers on the global stack.
|
## Tests setting properties on specific containers on the global stack.
|
||||||
@pytest.mark.parametrize("target_container", [
|
@pytest.mark.parametrize("target_container", [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user