Sort tests better

Alphabetically.

Contributes to issue CURA-3497.
This commit is contained in:
Ghostkeeper 2017-03-24 16:01:56 +01:00
parent dbc4a90e10
commit 3e437074ae
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -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),