Browse Source

Fix unit test

CURA-4360
Jaime van Kessel 7 years ago
parent
commit
889753f958
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tests/TestMachineAction.py

+ 2 - 0
tests/TestMachineAction.py

@@ -1,6 +1,8 @@
 #Todo: Write tests
 
 import pytest
+# QtApplication needs to be imported first to prevent import errors.
+from UM.Qt.QtApplication import QtApplication
 
 from cura.MachineAction import MachineAction
 from cura.MachineActionManager import MachineActionManager, NotUniqueMachineActionError, UnknownMachineActionError