# Copyright (c) 2016 Ultimaker B.V.
# Uranium is released under the terms of the AGPLv3 or higher.

import pytest

from UM.Application import Application

class FixtureApplication(Application):
    def __init__(self):
        Application._instance = None
        super().__init__("test", "1.0")

    def functionEvent(self, event):
        pass

    def parseCommandLine(self):
        pass

@pytest.fixture()
def application():
    return FixtureApplication()


@@ -146,16 +146,45 @@
 lication
+%0Afrom UM.Signal import Signal
 %0A%0Aclass 
@@ -316,16 +316,43 @@
 , %221.0%22)
+%0A        Signal._app = self
 %0A%0A    de
@@ -389,20 +389,28 @@
         
-pass
+event.call()
 %0A%0A    de

Make sure to set the test application instance as app for Signals