Set the User container to a writable container in testSetProperty

Since empty container (the default) will not allow writes
This commit is contained in:
Arjen Hiemstra 2017-03-28 17:50:09 +02:00
parent 3f1f4a172d
commit 2a2df31c5b

View file

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