diff options
author | Jaime van Kessel <nallath@gmail.com> | 2017-05-01 17:10:05 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2017-05-01 17:10:05 +0300 |
commit | e6e442348b0940a71bf76c8d1e7cdc9c388ff76b (patch) | |
tree | 4c2948f66fcbcc60317784a4ae10a352f64d6c21 /tests | |
parent | 8a227c02695aaa9f74067aa18f35b645799c2de9 (diff) |
Fixed one of the tests
The test failed due to it not creating the right application CURA-3497
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Settings/TestExtruderStack.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/Settings/TestExtruderStack.py b/tests/Settings/TestExtruderStack.py index c49448b030..b52f71e02d 100644 --- a/tests/Settings/TestExtruderStack.py +++ b/tests/Settings/TestExtruderStack.py @@ -11,6 +11,8 @@ from UM.Settings.InstanceContainer import InstanceContainer #To check against th import cura.Settings.ExtruderStack #The module we're testing. from cura.Settings.Exceptions import InvalidContainerError, InvalidOperationError #To check whether the correct exceptions are raised. +from cura.CuraApplication import CuraApplication + ## Fake container registry that always provides all containers you ask of. @pytest.yield_fixture() def container_registry(): @@ -239,6 +241,7 @@ def test_deserializeMoveDefinitionContainer(extruder_stack): ## Tests whether getProperty properly applies the stack-like behaviour on its # containers. def test_getPropertyFallThrough(extruder_stack): + CuraApplication.getInstance() # To ensure that we have the right Application #A few instance container mocks to put in the stack. mock_layer_heights = {} #For each container type, a mock container that defines layer height to something unique. mock_no_settings = {} #For each container type, a mock container that has no settings at all. |