mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 07:48:59 +08:00
Do not compare string to actual type
As far as we know, Global or Container stack should not take care of string -> value conversion
This commit is contained in:
parent
3620ce4c0a
commit
3c1cbd5aa9
@ -540,9 +540,9 @@ def test_setNextStack(global_stack):
|
||||
|
||||
## Tests setting properties directly on the global stack.
|
||||
@pytest.mark.parametrize("key, property, value, output_value", [
|
||||
("layer_height", "value", "0.1337", 0.1337),
|
||||
("foo", "value", "100", 100),
|
||||
("support_enabled", "value", "True", True),
|
||||
("layer_height", "value", 0.1337, 0.1337),
|
||||
("foo", "value", 100, 100),
|
||||
("support_enabled", "value", True, True),
|
||||
("layer_height", "default_value", 0.1337, 0.1337),
|
||||
("layer_height", "is_bright_pink", "of course", "of course")
|
||||
])
|
||||
|
Loading…
x
Reference in New Issue
Block a user