Browse Source

Set the User container to a writable container in testSetProperty

Since empty container (the default) will not allow writes
Arjen Hiemstra 8 years ago
parent
commit
2a2df31c5b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/Settings/TestGlobalStack.py

+ 1 - 0
tests/Settings/TestGlobalStack.py

@@ -520,6 +520,7 @@ def test_setNextStack(global_stack):
                         ("layer_height",    "is_bright_pink", "of course", "of course")
 ])
 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)
     assert global_stack.userChanges.getProperty(key, property) == output_value