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
|
from tests.functional import MagicMock, patch
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class TestCommonFunctions(TestCase):
|
class TestCommonFunctions(TestCase):
|
||||||
"""
|
"""
|
||||||
A test suite to test out various functions in the openlp.core.common module.
|
A test suite to test out various functions in the openlp.core.common module.
|
||||||
|
@ -294,7 +294,7 @@ class TestLib(TestCase):
|
|||||||
Test that the check_item_selected() function returns True when there are selected indexes
|
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
|
# 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 = MagicMock()
|
||||||
mocked_list_widget.selectedIndexes.return_value = True
|
mocked_list_widget.selectedIndexes.return_value = True
|
||||||
message = 'message'
|
message = 'message'
|
||||||
|
Loading…
Reference in New Issue
Block a user