diff options
author | Friedemann Kleint <[email protected]> | 2021-12-01 08:07:09 +0100 |
---|---|---|
committer | Friedemann Kleint <[email protected]> | 2021-12-01 09:27:35 +0100 |
commit | ac4431fcc71f01cde9bd1fd885d42960b869c924 (patch) | |
tree | 6150d12ac616885ca66ee0193dd591ce6f6174aa /sources/pyside6/tests/QtGui | |
parent | c94bc617282e0834ee71692e876d96d9d7ee7012 (diff) |
tests: Add TimedQGuiApplication
It is sufficient for Gui and QML tests.
Pick-to: 6.2
Change-Id: I6302c3d3f016fb95914f1754e794883cad69bce2
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
Diffstat (limited to 'sources/pyside6/tests/QtGui')
-rw-r--r-- | sources/pyside6/tests/QtGui/qicon_test.py | 6 | ||||
-rw-r--r-- | sources/pyside6/tests/QtGui/timed_app_and_patching_test.py | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sources/pyside6/tests/QtGui/qicon_test.py b/sources/pyside6/tests/QtGui/qicon_test.py index 2301793bc..5193ecf6b 100644 --- a/sources/pyside6/tests/QtGui/qicon_test.py +++ b/sources/pyside6/tests/QtGui/qicon_test.py @@ -35,11 +35,11 @@ sys.path.append(os.fspath(Path(__file__).resolve().parents[1])) from init_paths import init_test_paths init_test_paths(False) -from helper.timedqapplication import TimedQApplication +from helper.timedqguiapplication import TimedQGuiApplication from PySide6.QtGui import QIcon -class QIconCtorWithNoneTest(TimedQApplication): +class QIconCtorWithNoneTest(TimedQGuiApplication): '''Test made by seblin, see Bug #944: http://bugs.pyside.org/show_bug.cgi?id=944''' def testQIconCtorWithNone(self): @@ -51,7 +51,7 @@ class QIconCtorWithNoneTest(TimedQApplication): PIX_PATH = os.fspath(Path(__file__).resolve().parents[2] / "doc/tutorials/basictutorial/icons.png") -class QIconAddPixmapTest(TimedQApplication): +class QIconAddPixmapTest(TimedQGuiApplication): '''PYSIDE-1669: check that addPixmap works''' def testQIconSetPixmap(self): diff --git a/sources/pyside6/tests/QtGui/timed_app_and_patching_test.py b/sources/pyside6/tests/QtGui/timed_app_and_patching_test.py index 74a2ed58e..1e254e5d3 100644 --- a/sources/pyside6/tests/QtGui/timed_app_and_patching_test.py +++ b/sources/pyside6/tests/QtGui/timed_app_and_patching_test.py @@ -35,17 +35,17 @@ sys.path.append(os.fspath(Path(__file__).resolve().parents[1])) from init_paths import init_test_paths init_test_paths(False) -from helper.timedqapplication import TimedQApplication +from helper.timedqguiapplication import TimedQGuiApplication from PySide6.support import deprecated from PySide6.support.signature import importhandler from PySide6 import QtGui -class TestTimedApp(TimedQApplication): - '''Simple test case for TimedQApplication''' +class TestTimedApp(TimedQGuiApplication): + '''Simple test case for TimedQGuiApplication''' def testFoo(self): - # Simple test of TimedQApplication + # Simple test of TimedQGuiApplication self.app.exec() |