sas.qtgui.UnitTesting package

Submodules

sas.qtgui.UnitTesting.TestUtils module

class sas.qtgui.UnitTesting.TestUtils.QtSignalSpy(widget, signal, parent=None)[source]

Bases: QObject

Helper class for testing Qt signals.

__doc__ = '\n    Helper class for testing Qt signals.\n    '
__init__(widget, signal, parent=None)[source]
__module__ = 'sas.qtgui.UnitTesting.TestUtils'
called()[source]
count()[source]
signal(index=None)[source]
slot(*args, **kwargs)[source]

Record emitted signal.

sas.qtgui.UnitTesting.TestUtils.WarningTestNotImplemented(method_name=None)[source]

Prints warning about a non-implemented test. Test name retrieved from stack trace.

sas.qtgui.UnitTesting.TestUtilsTest module

class sas.qtgui.UnitTesting.TestUtilsTest.TestUtilsTest(methodName='runTest')[source]

Bases: TestCase

Test TestUtils

__doc__ = 'Test TestUtils'
__module__ = 'sas.qtgui.UnitTesting.TestUtilsTest'
testQtSignalSpy()[source]

Create the Spy the correct way

Module contents