sas.qtgui.UnitTesting package

Submodules

sas.qtgui.UnitTesting.TestUtils module

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

Bases: PyQt5.QtCore.QObject

Helper class for testing Qt signals.

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: unittest.case.TestCase

Test TestUtils

testQtSignalSpy()[source]

Create the Spy the correct way

Module contents