PySide6.QtTest¶
Detailed Description¶
The Qt Test module provides auxiliary API for testing Qt applications.
The QSignalSpy class provides easy
introspection for Qt’s signals and slots, and the
QAbstractItemModelTester allows for non-destructive
testing of item models.
Note
Not all macros in the C++ version of QtTest were exposed in PySide. This module is useful only for GUI testing and benchmarking; for ordinary unit testing you should use the pytest Python module.
Using the Module¶
To include the definitions of the module’s classes, use the following directive:
import PySide6.QtTest