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
1=== modified file 'openlp/core/ui/settingsdialog.py'
2--- openlp/core/ui/settingsdialog.py 2016-12-31 11:05:48 +0000
3+++ openlp/core/ui/settingsdialog.py 2017-03-02 17:37:15 +0000
4@@ -39,7 +39,7 @@
5 """
6 settings_dialog.setObjectName('settings_dialog')
7 settings_dialog.setWindowIcon(build_icon(u':/icon/openlp-logo.svg'))
8- settings_dialog.resize(800, 700)
9+ settings_dialog.resize(920, 625)
10 self.dialog_layout = QtWidgets.QGridLayout(settings_dialog)
11 self.dialog_layout.setObjectName('dialog_layout')
12 self.dialog_layout.setContentsMargins(8, 8, 8, 8)
13
14=== modified file 'tests/functional/openlp_core_ui/test_settingsform.py'
15--- tests/functional/openlp_core_ui/test_settingsform.py 2016-12-31 11:05:48 +0000
16+++ tests/functional/openlp_core_ui/test_settingsform.py 2017-03-02 17:37:15 +0000
17@@ -151,3 +151,14 @@
18 # THEN: The general tab's cancel() method should have been called, but not the themes tab
19 mocked_general_cancel.assert_called_with()
20 self.assertEqual(0, mocked_theme_cancel.call_count, 'The Themes tab\'s cancel() should not have been called')
21+
22+ def test_register_post_process(self):
23+ # GIVEN: A settings form instance
24+ settings_form = SettingsForm(None)
25+ fake_function = MagicMock()
26+
27+ # WHEN: register_post_process() is called
28+ settings_form.register_post_process(fake_function)
29+
30+ # THEN: The fake function should be in the settings form's list
31+ assert fake_function in settings_form.processes

Subscribers

People subscribed via source and target branches

to all changes: