Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJack Ha <j.ha@ultimaker.com>2017-04-25 12:18:55 +0300
committerJack Ha <j.ha@ultimaker.com>2017-04-25 12:18:55 +0300
commit74059a82a5c5035f1523c768cbf8ac1e1cd4738f (patch)
treee40b510982d43ff99f38eb9b59d3ce68999f5e0a /tests
parented23e6f5b2171d62321636912e10f084f91846c6 (diff)
Added some smoketests. CURA-3297
Diffstat (limited to 'tests')
-rwxr-xr-x[-rw-r--r--]tests/Settings/TestCuraContainerRegistry.py2
-rwxr-xr-x[-rw-r--r--]tests/Settings/TestGlobalStack.py12
2 files changed, 13 insertions, 1 deletions
diff --git a/tests/Settings/TestCuraContainerRegistry.py b/tests/Settings/TestCuraContainerRegistry.py
index 31348753f4..f6c1eeb9a5 100644..100755
--- a/tests/Settings/TestCuraContainerRegistry.py
+++ b/tests/Settings/TestCuraContainerRegistry.py
@@ -75,4 +75,4 @@ def test_loadLegacyFileRenamed(container_registry):
assert not os.path.isfile(temp_file)
new_filename = os.path.splitext(os.path.splitext(temp_file)[0])[0] + ".global.cfg"
- assert os.path.isfile(new_filename) \ No newline at end of file
+ assert os.path.isfile(new_filename)
diff --git a/tests/Settings/TestGlobalStack.py b/tests/Settings/TestGlobalStack.py
index c8f4d5dfaf..539de4929e 100644..100755
--- a/tests/Settings/TestGlobalStack.py
+++ b/tests/Settings/TestGlobalStack.py
@@ -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()