pep fixes

This commit is contained in:
Andreas Preikschat 2014-06-10 11:48:42 +02:00
parent 3235c334eb
commit 2791b37525
2 changed files with 2 additions and 3 deletions

View File

@ -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.

View File

@ -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'