mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Set the User container to a writable container in testSetProperty
Since empty container (the default) will not allow writes
This commit is contained in:
parent
3f1f4a172d
commit
2a2df31c5b
1 changed files with 1 additions and 0 deletions
|
@ -520,6 +520,7 @@ def test_setNextStack(global_stack):
|
||||||
("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, global_stack):
|
||||||
|
global_stack.setUserChanges(MockContainer(global_stack.id + "_user", "user"))
|
||||||
global_stack.setProperty(key, value, property)
|
global_stack.setProperty(key, value, property)
|
||||||
assert global_stack.userChanges.getProperty(key, property) == output_value
|
assert global_stack.userChanges.getProperty(key, property) == output_value
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue