forked from openlp/openlp
PEP8
This commit is contained in:
parent
6d7c19256b
commit
9b2ef7d8f7
@ -176,7 +176,7 @@ class FirstTimeForm(QtWidgets.QWizard, UiFirstTimeWizard, RegistryProperties):
|
||||
# web_config = Path(
|
||||
# 'C:\\Users\\sroom\\Documents\\Phill Ridout\\play_ground\\openlp\\ftw-json\\download_3.0.json'
|
||||
# ).read_text(encoding='utf-8') # TODO: Remove!!!!!
|
||||
except ConnectionError as e:
|
||||
except ConnectionError:
|
||||
QtWidgets.QMessageBox.critical(self, translate('OpenLP.FirstTimeWizard', 'Network Error'),
|
||||
translate('OpenLP.FirstTimeWizard', 'There was a network error attempting '
|
||||
'to connect to retrieve initial configuration information'),
|
||||
|
@ -184,7 +184,7 @@ class TestFirstTimeForm(TestCase, TestMixin):
|
||||
patch.object(frw, 'theme_combo_box', **{'findText.return_value': 3}) as mocked_theme_combo_box, \
|
||||
patch.multiple(frw, songs_check_box=DEFAULT, bible_check_box=DEFAULT, presentation_check_box=DEFAULT,
|
||||
image_check_box=DEFAULT, media_check_box=DEFAULT, custom_check_box=DEFAULT,
|
||||
song_usage_check_box=DEFAULT, alert_check_box=DEFAULT) as mocked_check_boxes, \
|
||||
song_usage_check_box=DEFAULT, alert_check_box=DEFAULT), \
|
||||
patch.object(Registry, 'register_function') as mocked_register_function, \
|
||||
patch('openlp.core.ui.firsttimeform.Settings', return_value=mocked_settings), \
|
||||
patch('openlp.core.ui.firsttimeform.gettempdir', return_value='temp') as mocked_gettempdir, \
|
||||
|
@ -59,7 +59,7 @@ class TestThemeListWidgetItem(TestCase, TestMixin):
|
||||
Test that icon get set to indicate a failure when `DownloadWorker` emits the download_failed signal
|
||||
"""
|
||||
# GIVEN: An instance of `DownloadWorker`
|
||||
instance = ThemeListWidgetItem('url', self.sample_theme_data, MagicMock())
|
||||
instance = ThemeListWidgetItem('url', self.sample_theme_data, MagicMock()) # noqa Overcome GC issue
|
||||
worker_threads = Registry().get('application').worker_threads
|
||||
worker = worker_threads['thumbnail_download_BlueBurst.png']['worker']
|
||||
|
||||
@ -76,7 +76,7 @@ class TestThemeListWidgetItem(TestCase, TestMixin):
|
||||
signal
|
||||
"""
|
||||
# GIVEN: An instance of `DownloadWorker`
|
||||
instance = ThemeListWidgetItem('url', self.sample_theme_data, MagicMock())
|
||||
instance = ThemeListWidgetItem('url', self.sample_theme_data, MagicMock()) # noqa Overcome GC issue
|
||||
worker_threads = Registry().get('application').worker_threads
|
||||
worker = worker_threads['thumbnail_download_BlueBurst.png']['worker']
|
||||
test_path = Path('downlaoded', 'file')
|
||||
|
Loading…
Reference in New Issue
Block a user