Merge lp:~raoul-snyman/openlp/bug-1668669-2.4 into lp:openlp/2.4

Proposed by Raoul Snyman
Status: Merged
Merged at revision: 2673
Proposed branch: lp:~raoul-snyman/openlp/bug-1668669-2.4
Merge into: lp:openlp/2.4
Diff against target: 31 lines (+12/-1)
2 files modified
openlp/core/ui/settingsdialog.py (+1/-1)
tests/functional/openlp_core_ui/test_settingsform.py (+11/-0)
To merge this branch: bzr merge lp:~raoul-snyman/openlp/bug-1668669-2.4
Reviewer Review Type Date Requested Status
Tim Bentley Approve
Review via email: mp+318821@code.launchpad.net

This proposal supersedes a proposal from 2017-03-01.

To post a comment you must log in.
Revision history for this message
Tim Bentley (trb143) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'openlp/core/ui/settingsdialog.py'
--- openlp/core/ui/settingsdialog.py 2016-12-31 11:05:48 +0000
+++ openlp/core/ui/settingsdialog.py 2017-03-02 17:37:15 +0000
@@ -39,7 +39,7 @@
39 """39 """
40 settings_dialog.setObjectName('settings_dialog')40 settings_dialog.setObjectName('settings_dialog')
41 settings_dialog.setWindowIcon(build_icon(u':/icon/openlp-logo.svg'))41 settings_dialog.setWindowIcon(build_icon(u':/icon/openlp-logo.svg'))
42 settings_dialog.resize(800, 700)42 settings_dialog.resize(920, 625)
43 self.dialog_layout = QtWidgets.QGridLayout(settings_dialog)43 self.dialog_layout = QtWidgets.QGridLayout(settings_dialog)
44 self.dialog_layout.setObjectName('dialog_layout')44 self.dialog_layout.setObjectName('dialog_layout')
45 self.dialog_layout.setContentsMargins(8, 8, 8, 8)45 self.dialog_layout.setContentsMargins(8, 8, 8, 8)
4646
=== modified file 'tests/functional/openlp_core_ui/test_settingsform.py'
--- tests/functional/openlp_core_ui/test_settingsform.py 2016-12-31 11:05:48 +0000
+++ tests/functional/openlp_core_ui/test_settingsform.py 2017-03-02 17:37:15 +0000
@@ -151,3 +151,14 @@
151 # THEN: The general tab's cancel() method should have been called, but not the themes tab151 # THEN: The general tab's cancel() method should have been called, but not the themes tab
152 mocked_general_cancel.assert_called_with()152 mocked_general_cancel.assert_called_with()
153 self.assertEqual(0, mocked_theme_cancel.call_count, 'The Themes tab\'s cancel() should not have been called')153 self.assertEqual(0, mocked_theme_cancel.call_count, 'The Themes tab\'s cancel() should not have been called')
154
155 def test_register_post_process(self):
156 # GIVEN: A settings form instance
157 settings_form = SettingsForm(None)
158 fake_function = MagicMock()
159
160 # WHEN: register_post_process() is called
161 settings_form.register_post_process(fake_function)
162
163 # THEN: The fake function should be in the settings form's list
164 assert fake_function in settings_form.processes

Subscribers

People subscribed via source and target branches

to all changes: