mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 15:29:00 +08:00
Minor fixes for visibility preset tests
CURA-5734
This commit is contained in:
parent
4c5bf3297c
commit
a58c63bbb8
@ -10,11 +10,11 @@ from cura.Settings.SettingVisibilityPreset import SettingVisibilityPreset
|
|||||||
|
|
||||||
setting_visibility_preset_test_settings = {"test", "zomg", "derp", "yay", "whoo"}
|
setting_visibility_preset_test_settings = {"test", "zomg", "derp", "yay", "whoo"}
|
||||||
|
|
||||||
Resources.addSearchPath(os.path.abspath(os.path.join(os.path.join(os.path.dirname(__file__)), "../..", "resources")))
|
Resources.addSearchPath(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "resources")))
|
||||||
Resources.addStorageType(CuraApplication.ResourceTypes.SettingVisibilityPreset, "setting_visibility")
|
Resources.addStorageType(CuraApplication.ResourceTypes.SettingVisibilityPreset, "setting_visibility")
|
||||||
|
|
||||||
|
|
||||||
def test_settingVisibilityPreset():
|
def test_createVisibilityPresetFromLocalFile():
|
||||||
# Simple creation test. This is seperated from the visibilityFromPrevious, since we can't check for the contents
|
# Simple creation test. This is seperated from the visibilityFromPrevious, since we can't check for the contents
|
||||||
# of the other profiles, since they might change over time.
|
# of the other profiles, since they might change over time.
|
||||||
visibility_preset = SettingVisibilityPreset()
|
visibility_preset = SettingVisibilityPreset()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user