Add test case where there is only a user changes profile

Specifically what this test requires.

Contributes to issue CURA-3497.
This commit is contained in:
Ghostkeeper 2017-03-22 15:54:32 +01:00
parent 60b6b72912
commit ebd08ac994
No known key found for this signature in database
GPG Key ID: C5F96EE2BC0F7E75
2 changed files with 10 additions and 1 deletions

View File

@ -13,7 +13,8 @@ import UM.Settings.ContainerRegistry
@pytest.mark.parametrize("filename, user_changes_id", [
("Global.global.cfg", "empty"),
("Global.stack.cfg", "empty"),
("MachineLegacy.stack.cfg", "empty")
("MachineLegacy.stack.cfg", "empty"),
("OnlyUser.global.cfg", "some_instance") #This one does have a user profile.
])
def test_deserializeUserChanges(filename, user_changes_id):
with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "stacks", filename)) as file_handle:

View File

@ -0,0 +1,8 @@
[general]
version = 3
name = Only User
id = OnlyUser
[containers]
0 = some_instance
6 = some_definition