mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 21:33:15 +08:00
We also raise InvalidContainer when setting variant
This commit is contained in:
parent
5892f13349
commit
60ee1a3f75
@ -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):
|
||||
with pytest.raises(InvalidContainerError):
|
||||
global_stack.setVariantById("some_variant") #Container registry is empty now.
|
Loading…
x
Reference in New Issue
Block a user