mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 07:56:22 -06:00
We also raise InvalidContainer when setting variant
This commit is contained in:
parent
5892f13349
commit
60ee1a3f75
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue