mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Sort tests better
Alphabetically. Contributes to issue CURA-3497.
This commit is contained in:
parent
dbc4a90e10
commit
3e437074ae
1 changed files with 5 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue