mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-29 07:14:24 +08:00
Add test for getDefaultQualityType
This commit is contained in:
parent
9ad8d91ff9
commit
1d62cc48aa
@ -4,8 +4,6 @@ import pytest
|
||||
|
||||
from cura.Machines.QualityManager import QualityManager
|
||||
|
||||
|
||||
|
||||
mocked_stack = MagicMock()
|
||||
mocked_extruder = MagicMock()
|
||||
|
||||
@ -58,3 +56,14 @@ def test_getQualityChangesGroup(quality_mocked_application):
|
||||
manager.initialize()
|
||||
|
||||
assert "herp" in manager.getQualityChangesGroups(mocked_stack)
|
||||
|
||||
|
||||
def test_getDefaultQualityType(quality_mocked_application):
|
||||
manager = QualityManager(quality_mocked_application)
|
||||
manager.initialize()
|
||||
mocked_stack = MagicMock()
|
||||
mocked_stack.definition.getMetaDataEntry = MagicMock(return_value = "normal")
|
||||
assert manager.getDefaultQualityType(mocked_stack).quality_type == "normal"
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user