diff options
author | Friedemann Kleint <[email protected]> | 2021-04-29 11:18:49 +0200 |
---|---|---|
committer | Friedemann Kleint <[email protected]> | 2021-04-29 15:56:58 +0200 |
commit | 6d2af409eedee377b3c2ba0cd8156b9409fabd9d (patch) | |
tree | 660f8fd87f77c1030cf97cc65345b9a941a321e4 /sources/pyside6/tests/QtQml/bug_814.py | |
parent | 88fff87519e741a3a999b8c1545834d116859faa (diff) |
Tests: Fix some space-related flake8 warnings
Change-Id: I9b0ad08839bf1246620c557ec304dfa90882907b
Reviewed-by: Christian Tismer <[email protected]>
Diffstat (limited to 'sources/pyside6/tests/QtQml/bug_814.py')
-rw-r--r-- | sources/pyside6/tests/QtQml/bug_814.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sources/pyside6/tests/QtQml/bug_814.py b/sources/pyside6/tests/QtQml/bug_814.py index f90c8894d..9b5ac7af0 100644 --- a/sources/pyside6/tests/QtQml/bug_814.py +++ b/sources/pyside6/tests/QtQml/bug_814.py @@ -52,6 +52,7 @@ from helper.timedqapplication import TimedQApplication from PySide6.QtCore import QUrl, QAbstractListModel, QModelIndex, Qt from PySide6.QtQuick import QQuickView + class ListModel(QAbstractListModel): def __init__(self): super().__init__() @@ -59,7 +60,7 @@ class ListModel(QAbstractListModel): def roleNames(self): return { Qt.DisplayRole: b'pysideModelData' } - def rowCount(self, parent = QModelIndex()): + def rowCount(self, parent=QModelIndex()): return 3 def data(self, index, role): @@ -67,6 +68,7 @@ class ListModel(QAbstractListModel): return 'blubb' return None + class TestBug814(TimedQApplication): def testAbstractItemModelTransferToQML(self): view = QQuickView() @@ -79,6 +81,7 @@ class TestBug814(TimedQApplication): self.assertTrue(root, quickview_errorstring(view)) view.show() + if __name__ == '__main__': unittest.main() |