· 6 years ago · May 03, 2020, 04:00 PM
1diff --git a/openlp/core/app.py b/openlp/core/app.py
2index 58dfeeacd..37bc8d107 100644
3--- a/openlp/core/app.py
4+++ b/openlp/core/app.py
5@@ -102,7 +102,7 @@ class OpenLP(QtCore.QObject, LogMixin):
6 has_run_wizard = self.settings.value('core/has run wizard')
7 if not has_run_wizard:
8 ftw = FirstTimeForm()
9- ftw.initialize(screens)
10+ ftw.initialise(screens)
11 if ftw.exec() == QtWidgets.QDialog.Accepted:
12 self.settings.setValue('core/has run wizard', True)
13 else:
14diff --git a/openlp/core/lib/pluginmanager.py b/openlp/core/lib/pluginmanager.py
15index a4dc101af..d0cc97b8c 100644
16--- a/openlp/core/lib/pluginmanager.py
17+++ b/openlp/core/lib/pluginmanager.py
18@@ -168,7 +168,7 @@ class PluginManager(RegistryBase, LogMixin, RegistryProperties):
19 self.log_exception('Unable to initialise plugin {plugin}'.format(plugin=plugin.name))
20 display_text = ''
21 if uninitialised_plugins:
22- display_text = translate('OpenLP.PluginManager', 'Unable to initialize the following plugins:') + \
23+ display_text = translate('OpenLP.PluginManager', 'Unable to initialise the following plugins:') + \
24 '\n\n'.join(uninitialised_plugins) + '\n\n'
25 error_text = State().get_text()
26 if error_text:
27diff --git a/openlp/core/projectors/constants.py b/openlp/core/projectors/constants.py
28index 2d70767f2..6138546be 100644
29--- a/openlp/core/projectors/constants.py
30+++ b/openlp/core/projectors/constants.py
31@@ -475,7 +475,7 @@ STATUS_MSG = {
32 S_DATA_OK: translate('OpenLP.ProjectorConstants', 'Command returned with OK'),
33 S_HOST_LOOKUP: translate('OpenLP.ProjectorConstants', 'Performing a host name lookup'),
34 S_INFO: translate('OpenLP.ProjectorConstants', 'Projector Information available'),
35- S_INITIALIZE: translate('OpenLP.ProjectorConstants', 'Initialize in progress'),
36+ S_INITIALIZE: translate('OpenLP.ProjectorConstants', 'Initialise in progress'),
37 S_LISTENING: translate('OpenLP.ProjectorConstants', 'Socket is listening (internal use only)'),
38 S_NETWORK_IDLE: translate('OpenLP.ProjectorConstants', 'No network activity at this time'),
39 S_NETWORK_RECEIVING: translate('OpenLP.ProjectorConstants', 'Received data'),
40diff --git a/openlp/core/projectors/db.py b/openlp/core/projectors/db.py
41index 9887b5f49..9277fb076 100644
42--- a/openlp/core/projectors/db.py
43+++ b/openlp/core/projectors/db.py
44@@ -254,12 +254,12 @@ class ProjectorDB(Manager):
45 super().__init__(plugin_name='projector',
46 init_schema=self.init_schema,
47 upgrade_mod=upgrade)
48- log.debug('ProjectorDB() Initialized using db url {db}'.format(db=self.db_url))
49+ log.debug('ProjectorDB() Initialised using db url {db}'.format(db=self.db_url))
50 log.debug('Session: {session}'.format(session=self.session))
51
52 def init_schema(self, *args, **kwargs):
53 """
54- Setup the projector database and initialize the schema.
55+ Setup the projector database and initialise the schema.
56
57 Declarative uses table classes to define schema.
58 """
59diff --git a/openlp/core/projectors/manager.py b/openlp/core/projectors/manager.py
60index d9134a255..63f182671 100644
61--- a/openlp/core/projectors/manager.py
62+++ b/openlp/core/projectors/manager.py
63@@ -298,7 +298,7 @@ class ProjectorManager(QtWidgets.QWidget, RegistryBase, UiProjectorManager, LogM
64
65 def bootstrap_initialise(self):
66 """
67- Pre-initialize setups.
68+ Pre-initialise setups.
69 """
70 self.setup_ui(self)
71 if self.projectordb is None:
72@@ -311,7 +311,7 @@ class ProjectorManager(QtWidgets.QWidget, RegistryBase, UiProjectorManager, LogM
73
74 def bootstrap_post_set_up(self):
75 """
76- Post-initialize setups.
77+ Post-initialise setups.
78 """
79 # Set 1.5 second delay before loading all projectors
80 if self.autostart:
81diff --git a/openlp/core/projectors/pjlink.py b/openlp/core/projectors/pjlink.py
82index d7b615aac..a6f9c8ff1 100644
83--- a/openlp/core/projectors/pjlink.py
84+++ b/openlp/core/projectors/pjlink.py
85@@ -101,7 +101,7 @@ class PJLinkUDP(QtNetwork.QUdpSocket):
86 self.search_timer = QtCore.QTimer()
87 self.udp_broadcast_listen_setting = False
88 self.settings = Registry().get('settings')
89- log.debug('(UDP:{port}) PJLinkUDP() Initialized'.format(port=self.port))
90+ log.debug('(UDP:{port}) PJLinkUDP() Initialised'.format(port=self.port))
91 if self.settings.value('projector/udp broadcast listen'):
92 self.udp_start()
93
94@@ -263,7 +263,7 @@ class PJLink(QtNetwork.QTcpSocket):
95
96 def reset_information(self):
97 """
98- Initialize instance variables. Also used to reset projector-specific information to default.
99+ Initialise instance variables. Also used to reset projector-specific information to default.
100 """
101 conn_state = STATUS_CODE[QSOCKET_STATE[self.state()]]
102 log.debug('({ip}) reset_information() connect status is {state}'.format(ip=self.entry.name,
103diff --git a/openlp/core/projectors/sourceselectform.py b/openlp/core/projectors/sourceselectform.py
104index 5ef4e0d2e..5e9e0abf9 100644
105--- a/openlp/core/projectors/sourceselectform.py
106+++ b/openlp/core/projectors/sourceselectform.py
107@@ -216,7 +216,7 @@ class FingerTabWidget(QtWidgets.QTabWidget):
108 """
109 def __init__(self, parent):
110 """
111- Initialize FingerTabWidget instance
112+ Initialise FingerTabWidget instance
113 """
114 super().__init__(parent)
115 self.setTabBar(FingerTabBarWidget(self))
116diff --git a/openlp/core/projectors/tab.py b/openlp/core/projectors/tab.py
117index ac9f12fb7..41bf7fc61 100644
118--- a/openlp/core/projectors/tab.py
119+++ b/openlp/core/projectors/tab.py
120@@ -125,7 +125,7 @@ class ProjectorTab(SettingsTab):
121 translate('OpenLP.ProjectorTab', 'Connect to projector when LINKUP received (v2 only)'))
122 self.udp_broadcast_listen.setText(
123 translate('OpenLP.ProjectorTab', 'Enable listening for PJLink2 broadcast messages'))
124- log.debug('PJLink settings tab initialized')
125+ log.debug('PJLink settings tab initialised')
126
127 def load(self):
128 """
129diff --git a/openlp/core/ui/firsttimeform.py b/openlp/core/ui/firsttimeform.py
130index 51099a5db..c27f0a9ee 100644
131--- a/openlp/core/ui/firsttimeform.py
132+++ b/openlp/core/ui/firsttimeform.py
133@@ -150,7 +150,7 @@ class FirstTimeForm(QtWidgets.QWizard, UiFirstTimeWizard, RegistryProperties):
134 self.set_defaults()
135 return super().exec()
136
137- def initialize(self, screens):
138+ def initialise(self, screens):
139 """
140 Set up the First Time Wizard
141
142diff --git a/openlp/core/ui/mainwindow.py b/openlp/core/ui/mainwindow.py
143index 29257f7a6..53884ef94 100644
144--- a/openlp/core/ui/mainwindow.py
145+++ b/openlp/core/ui/mainwindow.py
146@@ -707,7 +707,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow, LogMixin, RegistryPropert
147 if answer == QtWidgets.QMessageBox.No:
148 return
149 first_run_wizard = FirstTimeForm(self)
150- first_run_wizard.initialize(ScreenList())
151+ first_run_wizard.initialise(ScreenList())
152 if first_run_wizard.exec() == QtWidgets.QDialog.Rejected:
153 return
154 self.application.set_busy_cursor()
155diff --git a/openlp/core/ui/themeform.py b/openlp/core/ui/themeform.py
156index deb827c76..e4531210d 100644
157--- a/openlp/core/ui/themeform.py
158+++ b/openlp/core/ui/themeform.py
159@@ -229,11 +229,11 @@ class ThemeForm(QtWidgets.QWizard, Ui_ThemeWizard, RegistryProperties):
160 self.setWindowTitle(UiStrings().NewTheme)
161 return QtWidgets.QWizard.exec(self)
162
163- def initializePage(self, page_id):
164+ def initialisePage(self, page_id):
165 """
166 Set up the pages for Initial run through dialog
167 """
168- log.debug('initializePage {page}'.format(page=page_id))
169+ log.debug('initialisePage {page}'.format(page=page_id))
170 wizard_page = self.page(page_id)
171 if wizard_page == self.background_page:
172 self.set_background_page_values()
173diff --git a/openlp/core/widgets/views.py b/openlp/core/widgets/views.py
174index f66f51dc0..c55ee33af 100644
175--- a/openlp/core/widgets/views.py
176+++ b/openlp/core/widgets/views.py
177@@ -73,7 +73,7 @@ class ListPreviewWidget(QtWidgets.QTableWidget, RegistryProperties):
178
179 def __init__(self, parent, screen_ratio):
180 """
181- Initializes the widget to default state.
182+ Initialises the widget to default state.
183
184 An empty ``ServiceItem`` is used by default. replace_service_manager_item() needs to be called to make this
185 widget display something.
186@@ -93,7 +93,7 @@ class ListPreviewWidget(QtWidgets.QTableWidget, RegistryProperties):
187 self.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
188 self.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
189 self.setAlternatingRowColors(True)
190- # Initialize variables.
191+ # Initialise variables.
192 self.service_item = ServiceItem()
193 self.screen_ratio = screen_ratio
194 self.auto_row_height = 100
195diff --git a/openlp/plugins/images/lib/mediaitem.py b/openlp/plugins/images/lib/mediaitem.py
196index c8ddc42c0..4beff0cc1 100644
197--- a/openlp/plugins/images/lib/mediaitem.py
198+++ b/openlp/plugins/images/lib/mediaitem.py
199@@ -465,7 +465,7 @@ class ImageMediaItem(MediaManagerItem):
200 # If no valid parent group is found, do nothing
201 if not isinstance(parent_group, ImageGroups):
202 return
203- # Initialize busy cursor and progress bar
204+ # Initialise busy cursor and progress bar
205 self.application.set_busy_cursor()
206 self.main_window.display_progress_bar(len(image_paths))
207 # Save the new image_paths in the database
208diff --git a/openlp/plugins/media/lib/mediaitem.py b/openlp/plugins/media/lib/mediaitem.py
209index 56065ea40..a41021c0d 100644
210--- a/openlp/plugins/media/lib/mediaitem.py
211+++ b/openlp/plugins/media/lib/mediaitem.py
212@@ -207,7 +207,7 @@ class MediaMediaItem(MediaManagerItem, RegistryProperties):
213
214 def initialise(self):
215 """
216- Initialize media item.
217+ Initialise media item.
218 """
219 self.list_view.clear()
220 self.service_path = AppLocation.get_section_data_path(self.settings_section) / 'thumbnails'
221diff --git a/openlp/plugins/planningcenter/lib/planningcenter_api.py b/openlp/plugins/planningcenter/lib/planningcenter_api.py
222index 2a1434f3c..014e84e0b 100644
223--- a/openlp/plugins/planningcenter/lib/planningcenter_api.py
224+++ b/openlp/plugins/planningcenter/lib/planningcenter_api.py
225@@ -40,7 +40,7 @@ class PlanningCenterAPI:
226 """
227 def __init__(self, application_id, secret):
228 """
229- Initialize.
230+ Initialise.
231
232 :param application_id: The Application ID from Planning Center Online
233 for API authentication.
234diff --git a/openlp/plugins/planningcenter/lib/songimport.py b/openlp/plugins/planningcenter/lib/songimport.py
235index 44ffbb72c..aac095d12 100644
236--- a/openlp/plugins/planningcenter/lib/songimport.py
237+++ b/openlp/plugins/planningcenter/lib/songimport.py
238@@ -38,7 +38,7 @@ class PlanningCenterSongImport(SongImport):
239 """
240 def __init__(self):
241 """
242- Initialize
243+ Initialise
244 """
245 songs = Registry().get('songs')
246 manager = songs.plugin.manager
247diff --git a/tests/functional/openlp_core/ui/test_firsttimeform.py b/tests/functional/openlp_core/ui/test_firsttimeform.py
248index a5ad9d8b5..d4742e33a 100644
249--- a/tests/functional/openlp_core/ui/test_firsttimeform.py
250+++ b/tests/functional/openlp_core/ui/test_firsttimeform.py
251@@ -106,7 +106,7 @@ def test_firsttimeform_initialise():
252 expected_screens = MagicMock()
253
254 # WHEN: The First Time Wizard is initialised
255- frw.initialize(expected_screens)
256+ frw.initialise(expected_screens)
257
258 # THEN: The screens should be set up, and the default values initialised
259 assert expected_screens == frw.screens, 'The screens should be correct'
260@@ -136,7 +136,7 @@ def test_set_defaults(mock_settings):
261 """
262 # GIVEN: An initialised FRW and a whole lot of stuff mocked out
263 frw = FirstTimeForm(None)
264- frw.initialize(MagicMock())
265+ frw.initialise(MagicMock())
266 mocked_settings = MagicMock()
267 mocked_settings.value.side_effect = lambda key: {'core/has run wizard': False}[key]
268 with patch.object(frw, 'restart') as mocked_restart, \
269@@ -229,7 +229,7 @@ def test_reject_method(mocked_is_thread_finished, mocked_get_thread_worker,
270 mocked_get_thread_worker.return_value = mocked_worker
271 mocked_is_thread_finished.side_effect = [False, True]
272 frw = FirstTimeForm(None)
273- frw.initialize(MagicMock())
274+ frw.initialise(MagicMock())
275 frw.thumbnail_download_threads = ['test_thread']
276 with patch.object(frw.application, 'set_normal_cursor') as mocked_set_normal_cursor:
277
278@@ -302,7 +302,7 @@ def test_network_error(mocked_message_box, mocked_get_web_page, ftf_app):
279 """
280 # GIVEN: Initial setup and mocks
281 first_time_form = FirstTimeForm(None)
282- first_time_form.initialize(MagicMock())
283+ first_time_form.initialise(MagicMock())
284 mocked_get_web_page.side_effect = ConnectionError('')
285 mocked_message_box.Ok = 'OK'
286
287diff --git a/tests/openlp_core/projectors/test_projector_pjlink_udp.py b/tests/openlp_core/projectors/test_projector_pjlink_udp.py
288index e20e9b822..b5987c499 100644
289--- a/tests/openlp_core/projectors/test_projector_pjlink_udp.py
290+++ b/tests/openlp_core/projectors/test_projector_pjlink_udp.py
291@@ -39,7 +39,7 @@ def test_get_datagram_data_negative_zero_length(mock_log, settings):
292 # GIVEN: Test setup
293 pjlink_udp = PJLinkUDP()
294 log_warning_calls = [call('(UDP:4352) No data (-1)')]
295- log_debug_calls = [call('(UDP:4352) PJLinkUDP() Initialized'),
296+ log_debug_calls = [call('(UDP:4352) PJLinkUDP() Initialised'),
297 call('(UDP:4352) get_datagram() - Receiving data')]
298 with patch.object(pjlink_udp, 'pendingDatagramSize') as mock_datagram, \
299 patch.object(pjlink_udp, 'readDatagram') as mock_read:
300@@ -62,7 +62,7 @@ def test_get_datagram_data_no_data(mock_log, settings):
301 # GIVEN: Test setup
302 pjlink_udp = PJLinkUDP()
303 log_warning_calls = [call('(UDP:4352) get_datagram() called when pending data size is 0')]
304- log_debug_calls = [call('(UDP:4352) PJLinkUDP() Initialized'),
305+ log_debug_calls = [call('(UDP:4352) PJLinkUDP() Initialised'),
306 call('(UDP:4352) get_datagram() - Receiving data')]
307 with patch.object(pjlink_udp, 'pendingDatagramSize') as mock_datagram, \
308 patch.object(pjlink_udp, 'readDatagram') as mock_read:
309@@ -85,7 +85,7 @@ def test_get_datagram_pending_zero_length(mock_log, settings):
310 # GIVEN: Test setup
311 pjlink_udp = PJLinkUDP()
312 log_warning_calls = [call('(UDP:4352) get_datagram() called when pending data size is 0')]
313- log_debug_calls = [call('(UDP:4352) PJLinkUDP() Initialized'),
314+ log_debug_calls = [call('(UDP:4352) PJLinkUDP() Initialised'),
315 call('(UDP:4352) get_datagram() - Receiving data')]
316 with patch.object(pjlink_udp, 'pendingDatagramSize') as mock_datagram:
317 mock_datagram.return_value = 0
318@@ -104,7 +104,7 @@ def test_pjlinksettings_add_udp_listener(mock_log, settings):
319 Test adding UDP listners to PJLink Settings tab
320 """
321 # GIVEN: Initial setup
322- log_debug_calls = [call('PJLink settings tab initialized'),
323+ log_debug_calls = [call('PJLink settings tab initialised'),
324 call('PJLinkSettings: new callback list: dict_keys([4352])')]
325 log_warning_calls = []
326
327@@ -127,7 +127,7 @@ def test_pjlinksettings_add_udp_listener_multiple_same(mock_log, settings):
328 Test adding second UDP listner with same port to PJLink Settings tab
329 """
330 # GIVEN: Initial setup
331- log_debug_calls = [call('PJLink settings tab initialized'),
332+ log_debug_calls = [call('PJLink settings tab initialised'),
333 call('PJLinkSettings: new callback list: dict_keys([4352])')]
334 log_warning_calls = [call('Port 4352 already in list - not adding')]
335 pjlink_udp = PJLinkUDP()
336@@ -150,7 +150,7 @@ def test_pjlinksettings_add_udp_listener_multiple_different(mock_log, settings):
337 Test adding second UDP listner with different port to PJLink Settings tab
338 """
339 # GIVEN: Initial setup
340- log_debug_calls = [call('PJLink settings tab initialized'),
341+ log_debug_calls = [call('PJLink settings tab initialised'),
342 call('PJLinkSettings: new callback list: dict_keys([4352])')]
343 log_warning_calls = []
344
345@@ -176,7 +176,7 @@ def test_pjlinksettings_remove_udp_listener(mock_log, settings):
346 Test removing UDP listners to PJLink Settings tab
347 """
348 # GIVEN: Initial setup
349- log_debug_calls = [call('PJLink settings tab initialized'),
350+ log_debug_calls = [call('PJLink settings tab initialised'),
351 call('PJLinkSettings: new callback list: dict_keys([4352])'),
352 call('PJLinkSettings: new callback list: dict_keys([])')]
353 log_warning_calls = []
354@@ -200,7 +200,7 @@ def test_pjlinksettings_remove_udp_listener_multiple_different(mock_log, setting
355 Test adding second UDP listner with different port to PJLink Settings tab
356 """
357 # GIVEN: Initial setup
358- log_debug_calls = [call('PJLink settings tab initialized'),
359+ log_debug_calls = [call('PJLink settings tab initialised'),
360 call('PJLinkSettings: new callback list: dict_keys([4352])')]
361 log_warning_calls = []
362
363@@ -229,10 +229,10 @@ def test_pjlinksettings_call_udp_listener(mock_tab_log, mock_pjlink_log, mock_ch
364 Test calling UDP listners in PJLink Settings tab
365 """
366 # GIVEN: Initial setup
367- tab_debug_calls = [call('PJLink settings tab initialized'),
368+ tab_debug_calls = [call('PJLink settings tab initialised'),
369 call('PJLinkSettings: new callback list: dict_keys([4352])'),
370 call('PJLinkSettings: Calling UDP listeners')]
371- pjlink_debug_calls = [call.debug('(UDP:4352) PJLinkUDP() Initialized')]
372+ pjlink_debug_calls = [call.debug('(UDP:4352) PJLinkUDP() Initialised')]
373
374 pjlink_udp = PJLinkUDP()
375 settings_tab = ProjectorTab(parent=None)
376diff --git a/tests/openlp_core/projectors/test_projectormanager.py b/tests/openlp_core/projectors/test_projectormanager.py
377index b110763a5..e0e84cffa 100644
378--- a/tests/openlp_core/projectors/test_projectormanager.py
379+++ b/tests/openlp_core/projectors/test_projectormanager.py
380@@ -43,7 +43,7 @@ def projector_manager(settings):
381
382 def test_bootstrap_initialise(projector_manager):
383 """
384- Test initialize calls correct startup functions
385+ Test initialise calls correct startup functions
386 """
387 # WHEN: we call bootstrap_initialise
388 projector_manager.bootstrap_initialise()
389@@ -54,16 +54,16 @@ def test_bootstrap_initialise(projector_manager):
390
391 def test_bootstrap_post_set_up(projector_manager):
392 """
393- Test post-initialize calls proper setups
394+ Test post-initialise calls proper setups
395 """
396 # GIVEN: setup mocks
397 projector_manager._load_projectors = MagicMock()
398
399- # WHEN: Call to initialize is run
400+ # WHEN: Call to initialise is run
401 projector_manager.bootstrap_initialise()
402 projector_manager.bootstrap_post_set_up()
403
404- # THEN: verify calls to retrieve saved projectors and edit page initialized
405+ # THEN: verify calls to retrieve saved projectors and edit page initialised
406 assert 1 == projector_manager._load_projectors.call_count, \
407 'Initialization should have called load_projectors()'
408 assert type(projector_manager.projector_form) == ProjectorEditForm, \
409diff --git a/tests/openlp_core/ui/test_themeform.py b/tests/openlp_core/ui/test_themeform.py
410index 802284a3a..72a74a5bb 100644
411--- a/tests/openlp_core/ui/test_themeform.py
412+++ b/tests/openlp_core/ui/test_themeform.py
413@@ -317,7 +317,7 @@ def test_on_shadow_toggled(mocked_setup, settings):
414 @patch('openlp.core.ui.themeform.ThemeForm._setup')
415 def test_initialise_page_background(mocked_setup, settings):
416 """
417- Test the initializePage() method with the background page
418+ Test the initialisePage() method with the background page
419 """
420 # GIVEN: An instance of ThemeForm with some mocks
421 theme_form = ThemeForm(None)
422@@ -326,7 +326,7 @@ def test_initialise_page_background(mocked_setup, settings):
423 theme_form.set_background_page_values = MagicMock()
424
425 # WHEN: on_shadow_toggled is called
426- theme_form.initializePage(0)
427+ theme_form.initialisePage(0)
428
429 # THEN: Everything is working right
430 theme_form.set_background_page_values.assert_called_once()
431@@ -335,7 +335,7 @@ def test_initialise_page_background(mocked_setup, settings):
432 @patch('openlp.core.ui.themeform.ThemeForm._setup')
433 def test_initialise_page_main_area(mocked_setup, settings):
434 """
435- Test the initializePage() method with the main_area page
436+ Test the initialisePage() method with the main_area page
437 """
438 # GIVEN: An instance of ThemeForm with some mocks
439 theme_form = ThemeForm(None)
440@@ -345,7 +345,7 @@ def test_initialise_page_main_area(mocked_setup, settings):
441 theme_form.set_main_area_page_values = MagicMock()
442
443 # WHEN: on_shadow_toggled is called
444- theme_form.initializePage(0)
445+ theme_form.initialisePage(0)
446
447 # THEN: Everything is working right
448 theme_form.set_main_area_page_values.assert_called_once()
449@@ -354,7 +354,7 @@ def test_initialise_page_main_area(mocked_setup, settings):
450 @patch('openlp.core.ui.themeform.ThemeForm._setup')
451 def test_initialise_page_footer_area(mocked_setup, settings):
452 """
453- Test the initializePage() method with the footer_area page
454+ Test the initialisePage() method with the footer_area page
455 """
456 # GIVEN: An instance of ThemeForm with some mocks
457 theme_form = ThemeForm(None)
458@@ -365,7 +365,7 @@ def test_initialise_page_footer_area(mocked_setup, settings):
459 theme_form.set_footer_area_page_values = MagicMock()
460
461 # WHEN: on_shadow_toggled is called
462- theme_form.initializePage(0)
463+ theme_form.initialisePage(0)
464
465 # THEN: Everything is working right
466 theme_form.set_footer_area_page_values.assert_called_once()
467@@ -374,7 +374,7 @@ def test_initialise_page_footer_area(mocked_setup, settings):
468 @patch('openlp.core.ui.themeform.ThemeForm._setup')
469 def test_initialise_page_alignment(mocked_setup, settings):
470 """
471- Test the initializePage() method with the alignment page
472+ Test the initialisePage() method with the alignment page
473 """
474 # GIVEN: An instance of ThemeForm with some mocks
475 theme_form = ThemeForm(None)
476@@ -386,7 +386,7 @@ def test_initialise_page_alignment(mocked_setup, settings):
477 theme_form.set_alignment_page_values = MagicMock()
478
479 # WHEN: on_shadow_toggled is called
480- theme_form.initializePage(0)
481+ theme_form.initialisePage(0)
482
483 # THEN: Everything is working right
484 theme_form.set_alignment_page_values.assert_called_once()
485@@ -395,7 +395,7 @@ def test_initialise_page_alignment(mocked_setup, settings):
486 @patch('openlp.core.ui.themeform.ThemeForm._setup')
487 def test_initialise_page_area_position(mocked_setup, settings):
488 """
489- Test the initializePage() method with the area_position page
490+ Test the initialisePage() method with the area_position page
491 """
492 # GIVEN: An instance of ThemeForm with some mocks
493 theme_form = ThemeForm(None)
494@@ -408,7 +408,7 @@ def test_initialise_page_area_position(mocked_setup, settings):
495 theme_form.set_position_page_values = MagicMock()
496
497 # WHEN: on_shadow_toggled is called
498- theme_form.initializePage(0)
499+ theme_form.initialisePage(0)
500
501 # THEN: Everything is working right
502 theme_form.set_position_page_values.assert_called_once()