forked from openlp/openlp
PEP Fixes
This commit is contained in:
parent
eee14a654a
commit
a3146d7a2c
@ -470,7 +470,7 @@ class BibleMediaItem(MediaManagerItem):
|
||||
elif index == ResultsTab.Search:
|
||||
string = translate('BiblesPlugin.MediaItem', 'Results ({result_count})')
|
||||
count = len(self.current_results)
|
||||
self.results_view_tab.setTabText(index, string.format(result_count = count))
|
||||
self.results_view_tab.setTabText(index, string.format(result_count=count))
|
||||
|
||||
def on_book_order_button_toggled(self, checked):
|
||||
"""
|
||||
@ -866,7 +866,6 @@ class BibleMediaItem(MediaManagerItem):
|
||||
list_widget_items.append(bible_verse)
|
||||
return list_widget_items
|
||||
|
||||
|
||||
def generate_slide_data(self, service_item, item=None, xml_version=False, remote=False,
|
||||
context=ServiceItemContext.Service):
|
||||
"""
|
||||
|
@ -158,7 +158,6 @@ class TestMediaItem(TestCase, TestMixin):
|
||||
self.mocked_bible_2 = MagicMock(**{'get_books.return_value': self.book_list_2})
|
||||
self.mocked_bible_2.name = 'Bible 2'
|
||||
|
||||
|
||||
def test_media_item_instance(self):
|
||||
"""
|
||||
When creating an instance of C test that it is also an instance of
|
||||
@ -700,7 +699,6 @@ class TestMediaItem(TestCase, TestMixin):
|
||||
self.media_item.list_view.clear.assert_called_once_with()
|
||||
self.media_item.search_edit.clear.assert_called_once_with()
|
||||
|
||||
|
||||
def test_on_save_results_button_clicked(self):
|
||||
"""
|
||||
Test that "on_save_results_button_clicked" saves the results.
|
||||
@ -712,7 +710,7 @@ class TestMediaItem(TestCase, TestMixin):
|
||||
self.media_item.list_view = MagicMock(**{'selectedItems.return_value': [result_1, result_2, result_3]})
|
||||
|
||||
with patch.object(self.media_item, 'on_results_view_tab_total_update') as \
|
||||
mocked_on_results_view_tab_total_update :
|
||||
mocked_on_results_view_tab_total_update:
|
||||
|
||||
# WHEN: When the save_results_button is clicked
|
||||
self.media_item.on_save_results_button_clicked()
|
||||
|
Loading…
Reference in New Issue
Block a user