forked from openlp/openlp
Review fixes
This commit is contained in:
parent
9719645edd
commit
0a1f91af8b
@ -391,7 +391,7 @@ class ServiceManager(QtGui.QWidget, ServiceManagerDialog):
|
||||
Loads the service file and saves the existing one it there is one
|
||||
unchanged
|
||||
|
||||
``load_File``
|
||||
``load_file``
|
||||
The service file to the loaded. Will be None is from menu so
|
||||
selection will be required.
|
||||
"""
|
||||
|
@ -42,7 +42,7 @@ class TestStartNoteDialog(TestCase):
|
||||
QtTest.QTest.mouseClick(okWidget, QtCore.Qt.LeftButton)
|
||||
|
||||
# THEN the following input text is returned
|
||||
self.assertEqual(self.form.text_edit.toPlainText(), u'', u'The returned text is empty')
|
||||
self.assertEqual(self.form.text_edit.toPlainText(), u'', u'The returned text should be empty')
|
||||
|
||||
# WHEN displaying the UI, having set the text and pressing enter
|
||||
text = u'OpenLP is the best worship software'
|
||||
@ -53,7 +53,7 @@ class TestStartNoteDialog(TestCase):
|
||||
QtTest.QTest.mouseClick(okWidget, QtCore.Qt.LeftButton)
|
||||
|
||||
# THEN the following text is returned
|
||||
self.assertEqual(self.form.text_edit.toPlainText(), text, u'The text is as originally entered')
|
||||
self.assertEqual(self.form.text_edit.toPlainText(), text, u'The text originally entered should still be there')
|
||||
|
||||
# WHEN displaying the UI, having set the text and pressing enter
|
||||
self.form.text_edit.setPlainText(u'')
|
||||
@ -64,4 +64,4 @@ class TestStartNoteDialog(TestCase):
|
||||
QtTest.QTest.mouseClick(okWidget, QtCore.Qt.LeftButton)
|
||||
|
||||
# THEN the following text is returned
|
||||
self.assertEqual(self.form.text_edit.toPlainText(), text, u'The text is as changed text is returned')
|
||||
self.assertEqual(self.form.text_edit.toPlainText(), text, u'The text changed text should be returned')
|
Loading…
Reference in New Issue
Block a user