Add stubs for MachineManager testing

It also adds a first test that checks if the setActiveMachine
This commit is contained in:
Jaime van Kessel 2019-02-22 13:49:31 +01:00
parent dd59b9167b
commit b5c270f00a
3 changed files with 47 additions and 0 deletions

View file

@ -363,6 +363,7 @@ class MachineManager(QObject):
ConfigurationErrorMessage.getInstance().addFaultyContainers(global_stack.getId())
return # We're done here
ExtruderManager.getInstance().setActiveExtruderIndex(0) # Switch to first extruder
self._global_container_stack = global_stack
self._application.setGlobalContainerStack(global_stack)
ExtruderManager.getInstance()._globalContainerStackChanged()