mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 17:43:14 +08:00
Added some smoketests. CURA-3297
This commit is contained in:
parent
ed23e6f5b2
commit
74059a82a5
0
tests/Settings/TestCuraContainerRegistry.py
Normal file → Executable file
0
tests/Settings/TestCuraContainerRegistry.py
Normal file → Executable file
12
tests/Settings/TestGlobalStack.py
Normal file → Executable file
12
tests/Settings/TestGlobalStack.py
Normal file → Executable file
@ -544,3 +544,15 @@ def test_setVariantByIdExists(global_stack, container_registry):
|
||||
def test_setVariantByIdDoesntExist(global_stack):
|
||||
with pytest.raises(InvalidContainerError):
|
||||
global_stack.setVariantById("some_variant") #Container registry is empty now.
|
||||
|
||||
## Smoke test for findDefaultVariant
|
||||
def test_smoke_findDefaultVariant(global_stack):
|
||||
global_stack.findDefaultVariant()
|
||||
|
||||
## Smoke test for findDefaultMaterial
|
||||
def test_smoke_findDefaultMaterial(global_stack):
|
||||
global_stack.findDefaultMaterial()
|
||||
|
||||
## Smoke test for findDefaultQuality
|
||||
def test_smoke_findDefaultQuality(global_stack):
|
||||
global_stack.findDefaultQuality()
|
||||
|
Loading…
x
Reference in New Issue
Block a user