mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 11:17:49 -06:00
Added some smoketests. CURA-3297
This commit is contained in:
parent
ed23e6f5b2
commit
74059a82a5
2 changed files with 13 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue