From 750ff26b368afaf48caa20a72149eb4e79313fbd Mon Sep 17 00:00:00 2001 From: morkolai <nikolai-mork@live.no> Date: Wed, 1 Apr 2020 14:39:23 +0200 Subject: [PATCH] Cleanup test/test_main.py --- test/test_main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_main.py b/test/test_main.py index 3b116e4..2401ba1 100644 --- a/test/test_main.py +++ b/test/test_main.py @@ -5,7 +5,7 @@ from datetime import datetime as datetime_, timedelta from PySide2 import QtWidgets, QtTest, QtCore, QtGui from soitool import main -# references: +# References: # * findChild: https://srinikom.github.io/pyside-docs/PySide/QtCore/QObject.html#PySide.QtCore.PySide.QtCore.QObject.findChild # * pyside: https://doc.qt.io/qtforpython/PySide2/QtCore/QObject.html#PySide2.QtCore.PySide2.QtCore.QObject.findChild # * allows to find child of widget based on type (and name) @@ -59,7 +59,7 @@ class TestMain(unittest.TestCase): """Test at endring av tekst funker.""" def change_text_and_ok(): - # in PySide2 we need to store a reference to this. If we don't the + # In PySide2 we need to store a reference to this. If we don't the # widget is garbage collected somehow before we get to use # child_line_edit (a child of the active widget) active_widget = app.activeModalWidget() @@ -83,7 +83,7 @@ class TestMain(unittest.TestCase): QtTest.QTest.keyClick(app.activeModalWidget(), QtCore.Qt.Key_Enter) def change_text_and_not_ok(): - # in PySide2 we need to store a reference to this. If we don't the + # In PySide2 we need to store a reference to this. If we don't the # widget is garbage collected somehow before we get to use # child_line_edit (a child of the active widget) active_widget = app.activeModalWidget() -- GitLab