forked from openlp/openlp
pep fixes
This commit is contained in:
parent
3235c334eb
commit
2791b37525
@ -36,7 +36,6 @@ from openlp.core.common import check_directory_exists, de_hump, trace_error_hand
|
||||
from tests.functional import MagicMock, patch
|
||||
|
||||
|
||||
|
||||
class TestCommonFunctions(TestCase):
|
||||
"""
|
||||
A test suite to test out various functions in the openlp.core.common module.
|
||||
@ -139,4 +138,4 @@ class TestCommonFunctions(TestCase):
|
||||
|
||||
# THEN: the translated string should be returned, and the mocked function should have been called
|
||||
mocked_translate.assert_called_with(context, text, comment, encoding, n)
|
||||
self.assertEqual('Translated string', result, 'The translated string should have been returned')
|
||||
self.assertEqual('Translated string', result, 'The translated string should have been returned')
|
||||
|
@ -294,7 +294,7 @@ class TestLib(TestCase):
|
||||
Test that the check_item_selected() function returns True when there are selected indexes
|
||||
"""
|
||||
# GIVEN: A mocked out QtGui module and a list widget with selected indexes
|
||||
MockedQtGui = patch('openlp.core.lib.QtGui')
|
||||
mocked_QtGui = patch('openlp.core.lib.QtGui')
|
||||
mocked_list_widget = MagicMock()
|
||||
mocked_list_widget.selectedIndexes.return_value = True
|
||||
message = 'message'
|
||||
|
Loading…
Reference in New Issue
Block a user