diff options
Diffstat (limited to 'sources/pyside6/tests/signals/decorators_test.py')
-rw-r--r-- | sources/pyside6/tests/signals/decorators_test.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/pyside6/tests/signals/decorators_test.py b/sources/pyside6/tests/signals/decorators_test.py index f8d51383f..346a75101 100644 --- a/sources/pyside6/tests/signals/decorators_test.py +++ b/sources/pyside6/tests/signals/decorators_test.py @@ -39,6 +39,7 @@ init_test_paths(False) from PySide6.QtCore import QObject, Slot, SIGNAL, SLOT + class MyObject(QObject): def __init__(self, parent=None): QObject.__init__(self, parent) @@ -69,6 +70,7 @@ class MyObject(QObject): def mySlot6(self): self._slotCalledCount = self._slotCalledCount + 1 + class StaticMetaObjectTest(unittest.TestCase): def testSignalPropagation(self): @@ -100,6 +102,7 @@ class StaticMetaObjectTest(unittest.TestCase): m = mo.method(i) self.assertEqual(m.typeName(), "QObject*") + class SlotWithoutArgs(unittest.TestCase): def testError(self): @@ -108,5 +111,6 @@ class SlotWithoutArgs(unittest.TestCase): # accepting argument functions self.assertRaises(TypeError, Slot, lambda: 3) + if __name__ == '__main__': unittest.main() |