Minor fixes for visibility preset tests

CURA-5734
This commit is contained in:
Jaime van Kessel 2018-10-17 10:51:47 +02:00
parent 4c5bf3297c
commit a58c63bbb8

View File

@ -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()