diff --git a/test/test_main.py b/test/test_main.py index 3b116e47582079a8925993f2f5595a87f5b72448..2401ba16f238b02ca7072da7c8c06a85ed3721f2 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()