mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 22:13:58 -06:00
Move initializeSettingDefinitions and setting functions to their own function
This means we don't have to instantiate CuraApplication in the tests anymore
This commit is contained in:
parent
75b185d462
commit
efeba48ffb
2 changed files with 23 additions and 14 deletions
|
@ -33,8 +33,7 @@ def collecAllDefinitionIds():
|
|||
def collectAllSettingIds():
|
||||
VersionUpgradeManager._VersionUpgradeManager__instance = VersionUpgradeManager(MagicMock())
|
||||
|
||||
application = CuraApplication()
|
||||
application._initializeSettingDefinitionsAndFunctions()
|
||||
CuraApplication._initializeSettingDefinitions()
|
||||
|
||||
definition_container = DefinitionContainer("whatever")
|
||||
with open(os.path.join(os.path.dirname(__file__), "..", "..", "resources", "definitions", "fdmprinter.def.json"), encoding="utf-8") as data:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue