Browse Source

We also raise InvalidContainer when setting variant

Arjen Hiemstra 8 years ago
parent
commit
60ee1a3f75
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/Settings/TestGlobalStack.py

+ 2 - 2
tests/Settings/TestGlobalStack.py

@@ -542,5 +542,5 @@ def test_setVariantByIdExists(global_stack, container_registry):
 
 ##  Tests setting variants by specifying an ID of a variant that doesn't exist.
 def test_setVariantByIdDoesntExist(global_stack):
-    with pytest.raises(KeyError):
-        global_stack.setVariantById("some_variant") #Container registry is empty now.
+    with pytest.raises(InvalidContainerError):
+        global_stack.setVariantById("some_variant") #Container registry is empty now.