diff options
Diffstat (limited to 'sources/pyside6/tests/pysidetest/notify_id.py')
-rw-r--r-- | sources/pyside6/tests/pysidetest/notify_id.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/pyside6/tests/pysidetest/notify_id.py b/sources/pyside6/tests/pysidetest/notify_id.py index f3c38ab06..f11eacdda 100644 --- a/sources/pyside6/tests/pysidetest/notify_id.py +++ b/sources/pyside6/tests/pysidetest/notify_id.py @@ -40,6 +40,7 @@ from PySide6.QtCore import QObject, Signal, Property, Slot '''Tests that the signal notify id of a property is correct, aka corresponds to the initially set notify method.''' + class Foo(QObject): def __init__(self): super().__init__() @@ -63,6 +64,7 @@ class Foo(QObject): propChanged = Signal() prop = Property(str, getProp, setProp, notify=propChanged) + class NotifyIdSignal(unittest.TestCase): def setUp(self): self.obj = Foo() @@ -80,5 +82,6 @@ class NotifyIdSignal(unittest.TestCase): signalName = signal.name() self.assertEqual(signalName, "propChanged") + if __name__ == '__main__': unittest.main() |