mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 03:46:05 +08:00
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:
parent
60b6b72912
commit
ebd08ac994
@ -13,7 +13,8 @@ import UM.Settings.ContainerRegistry
|
|||||||
@pytest.mark.parametrize("filename, user_changes_id", [
|
@pytest.mark.parametrize("filename, user_changes_id", [
|
||||||
("Global.global.cfg", "empty"),
|
("Global.global.cfg", "empty"),
|
||||||
("Global.stack.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):
|
def test_deserializeUserChanges(filename, user_changes_id):
|
||||||
with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "stacks", filename)) as file_handle:
|
with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "stacks", filename)) as file_handle:
|
||||||
|
8
tests/Settings/stacks/OnlyUser.global.cfg
Normal file
8
tests/Settings/stacks/OnlyUser.global.cfg
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
[general]
|
||||||
|
version = 3
|
||||||
|
name = Only User
|
||||||
|
id = OnlyUser
|
||||||
|
|
||||||
|
[containers]
|
||||||
|
0 = some_instance
|
||||||
|
6 = some_definition
|
Loading…
x
Reference in New Issue
Block a user