mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:29:05 +08:00
Sort tests better
Alphabetically. Contributes to issue CURA-3497.
This commit is contained in:
parent
dbc4a90e10
commit
3e437074ae
@ -417,11 +417,6 @@ def test_setDefinitionByIdDoesntExist(global_stack):
|
||||
with pytest.raises(KeyError):
|
||||
global_stack.setDefinitionById("some_definition") #Container registry is empty now.
|
||||
|
||||
## Tests whether changing the next stack is properly forbidden.
|
||||
def test_setNextStack(global_stack):
|
||||
with pytest.raises(InvalidOperationError):
|
||||
global_stack.setNextStack(unittest.mock.MagicMock())
|
||||
|
||||
## Tests adding definition changes by specifying an ID of a container that
|
||||
# exists.
|
||||
def test_setDefinitionChangesByIdExists(global_stack, container_registry):
|
||||
@ -439,6 +434,11 @@ def test_setDefinitionChangesByIdDoesntExist(global_stack):
|
||||
with pytest.raises(KeyError):
|
||||
global_stack.setDefinitionChangesById("some_definition_changes") #Container registry is empty now.
|
||||
|
||||
## Tests whether changing the next stack is properly forbidden.
|
||||
def test_setNextStack(global_stack):
|
||||
with pytest.raises(InvalidOperationError):
|
||||
global_stack.setNextStack(unittest.mock.MagicMock())
|
||||
|
||||
## Tests setting properties directly on the global stack.
|
||||
@pytest.mark.parametrize("key, property, value, output_value", [
|
||||
("layer_height", "value", "0.1337", 0.1337),
|
||||
|
Loading…
x
Reference in New Issue
Block a user