Skip to content
Snippets Groups Projects
Commit 750ff26b authored by morkolai's avatar morkolai
Browse files

Cleanup test/test_main.py

parent af4f98de
No related branches found
No related tags found
1 merge request!52#82 Cleanup
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment