Merge lp:~phill-ridout/openlp/test-fixes into lp:openlp
- test-fixes
- Merge into trunk
Proposed by
Phill
Status: | Superseded |
---|---|
Proposed branch: | lp:~phill-ridout/openlp/test-fixes |
Merge into: | lp:openlp |
Diff against target: |
292 lines (+84/-55) 5 files modified
tests/functional/openlp_core_lib/test_renderer.py (+3/-1) tests/functional/openlp_plugins/bibles/test_mediaitem.py (+78/-53) tests/interfaces/openlp_core_ui/test_projectoreditform.py (+1/-1) tests/interfaces/openlp_plugins/bibles/test_lib_manager.py (+1/-0) tests/interfaces/openlp_plugins/bibles/test_lib_parse_reference.py (+1/-0) |
To merge this branch: | bzr merge lp:~phill-ridout/openlp/test-fixes |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Raoul Snyman | Pending | ||
Review via email: mp+325038@code.launchpad.net |
This proposal has been superseded by a proposal from 2017-06-03.
Commit message
Description of the change
Fixed some bible media item tests and one render test. The 02-Functional tests now pass, but we get a seg fault on the interface-tests
[SUCCESS] https:/
[SUCCESS] https:/
[FAILURE] https:/
Stopping after failure
To post a comment you must log in.
Unmerged revisions
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'tests/functional/openlp_core_lib/test_renderer.py' | |||
2 | --- tests/functional/openlp_core_lib/test_renderer.py 2017-05-23 05:00:42 +0000 | |||
3 | +++ tests/functional/openlp_core_lib/test_renderer.py 2017-06-03 23:27:29 +0000 | |||
4 | @@ -182,13 +182,15 @@ | |||
5 | 182 | @patch('openlp.core.lib.renderer.QtWebKitWidgets.QWebView') | 182 | @patch('openlp.core.lib.renderer.QtWebKitWidgets.QWebView') |
6 | 183 | @patch('openlp.core.lib.renderer.build_lyrics_format_css') | 183 | @patch('openlp.core.lib.renderer.build_lyrics_format_css') |
7 | 184 | @patch('openlp.core.lib.renderer.build_lyrics_outline_css') | 184 | @patch('openlp.core.lib.renderer.build_lyrics_outline_css') |
9 | 185 | def test_set_text_rectangle(self, mock_outline_css, mock_lyrics_css, mock_webview): | 185 | @patch('openlp.core.lib.renderer.build_chords_css') |
10 | 186 | def test_set_text_rectangle(self, mock_build_chords_css, mock_outline_css, mock_lyrics_css, mock_webview): | ||
11 | 186 | """ | 187 | """ |
12 | 187 | Test set_text_rectangle returns a proper html string | 188 | Test set_text_rectangle returns a proper html string |
13 | 188 | """ | 189 | """ |
14 | 189 | # GIVEN: test object and data | 190 | # GIVEN: test object and data |
15 | 190 | mock_lyrics_css.return_value = ' FORMAT CSS; ' | 191 | mock_lyrics_css.return_value = ' FORMAT CSS; ' |
16 | 191 | mock_outline_css.return_value = ' OUTLINE CSS; ' | 192 | mock_outline_css.return_value = ' OUTLINE CSS; ' |
17 | 193 | mock_build_chords_css.return_value = ' CHORDS CSS; ' | ||
18 | 192 | theme_data = Theme() | 194 | theme_data = Theme() |
19 | 193 | theme_data.font_main_name = 'Arial' | 195 | theme_data.font_main_name = 'Arial' |
20 | 194 | theme_data.font_main_size = 20 | 196 | theme_data.font_main_size = 20 |
21 | 195 | 197 | ||
22 | === modified file 'tests/functional/openlp_plugins/bibles/test_mediaitem.py' | |||
23 | --- tests/functional/openlp_plugins/bibles/test_mediaitem.py 2017-04-03 20:28:16 +0000 | |||
24 | +++ tests/functional/openlp_plugins/bibles/test_mediaitem.py 2017-06-03 23:27:29 +0000 | |||
25 | @@ -31,7 +31,7 @@ | |||
26 | 31 | 31 | ||
27 | 32 | from openlp.core.common import Registry | 32 | from openlp.core.common import Registry |
28 | 33 | from openlp.core.lib import MediaManagerItem | 33 | from openlp.core.lib import MediaManagerItem |
30 | 34 | from openlp.plugins.bibles.lib.mediaitem import BibleMediaItem, BibleSearch, ResultsTab, SearchStatus, \ | 34 | from openlp.plugins.bibles.lib.mediaitem import BibleMediaItem, BibleSearch, ResultsTab, SearchStatus, SearchTabs, \ |
31 | 35 | get_reference_separators, VALID_TEXT_SEARCH | 35 | get_reference_separators, VALID_TEXT_SEARCH |
32 | 36 | 36 | ||
33 | 37 | 37 | ||
34 | @@ -206,29 +206,63 @@ | |||
35 | 206 | """ | 206 | """ |
36 | 207 | Test the correct widget gets focus when the BibleMediaItem receives focus | 207 | Test the correct widget gets focus when the BibleMediaItem receives focus |
37 | 208 | """ | 208 | """ |
39 | 209 | # GIVEN: An instance of :class:`MediaManagerItem` and a mocked out search_tab and search_edit | 209 | # GIVEN: An instance of :class:`MediaManagerItem` and mocked out tabs and primary widgets |
40 | 210 | self.media_item.search_tab = MagicMock(**{'isVisible.return_value': True}) | 210 | self.media_item.search_tab = MagicMock(**{'isVisible.return_value': True}) |
41 | 211 | self.media_item.search_edit = MagicMock() | 211 | self.media_item.search_edit = MagicMock() |
62 | 212 | 212 | self.media_item.select_tab = MagicMock(**{'isVisible.return_value': False}) | |
63 | 213 | # WHEN: Calling on_focus | 213 | self.media_item.select_book_combo_box = MagicMock() |
64 | 214 | self.media_item.on_focus() | 214 | self.media_item.options_tab = MagicMock(**{'isVisible.return_value': False}) |
65 | 215 | 215 | self.media_item.version_combo_box = MagicMock() | |
66 | 216 | # THEN: setFocus and selectAll should have been called on search_edit | 216 | |
67 | 217 | self.assertEqual(self.media_item.search_edit.mock_calls, [call.setFocus(), call.selectAll()]) | 217 | # WHEN: Calling on_focus |
68 | 218 | 218 | self.media_item.on_focus() | |
69 | 219 | def test_on_focus_search_tab_not_visible(self): | 219 | |
70 | 220 | """ | 220 | # THEN: search_edit should now have focus and its text selected |
71 | 221 | Test the correct widget gets focus when the BibleMediaItem receives focus | 221 | self.media_item.search_edit.assert_has_calls([call.setFocus(), call.selectAll()]) |
72 | 222 | """ | 222 | self.media_item.select_book_combo_box.assert_not_called() |
73 | 223 | # GIVEN: An instance of :class:`MediaManagerItem` and a mocked out search_tab and select_book_combo_box | 223 | self.media_item.version_combo_box.setFocus.assert_not_called() |
74 | 224 | self.media_item.search_tab = MagicMock(**{'isVisible.return_value': False}) | 224 | |
75 | 225 | self.media_item.select_book_combo_box = MagicMock() | 225 | def test_on_focus_select_tab_visible(self): |
76 | 226 | 226 | """ | |
77 | 227 | # WHEN: Calling on_focus | 227 | Test the correct widget gets focus when the BibleMediaItem receives focus |
78 | 228 | self.media_item.on_focus() | 228 | """ |
79 | 229 | 229 | # GIVEN: An instance of :class:`MediaManagerItem` and mocked out tabs and primary widgets | |
80 | 230 | # THEN: setFocus should have been called on select_book_combo_box | 230 | self.media_item.search_tab = MagicMock(**{'isVisible.return_value': False}) |
81 | 231 | self.assertTrue(self.media_item.select_book_combo_box.setFocus.called) | 231 | self.media_item.search_edit = MagicMock() |
82 | 232 | self.media_item.select_tab = MagicMock(**{'isVisible.return_value': True}) | ||
83 | 233 | self.media_item.select_book_combo_box = MagicMock() | ||
84 | 234 | self.media_item.options_tab = MagicMock(**{'isVisible.return_value': False}) | ||
85 | 235 | self.media_item.version_combo_box = MagicMock() | ||
86 | 236 | |||
87 | 237 | # WHEN: Calling on_focus | ||
88 | 238 | self.media_item.on_focus() | ||
89 | 239 | |||
90 | 240 | # THEN: select_book_combo_box should have focus | ||
91 | 241 | self.media_item.search_edit.setFocus.assert_not_called() | ||
92 | 242 | self.media_item.search_edit.selectAll.assert_not_called() | ||
93 | 243 | self.media_item.select_book_combo_box.setFocus.assert_called_once_with() | ||
94 | 244 | self.media_item.version_combo_box.setFocus.assert_not_called() | ||
95 | 245 | |||
96 | 246 | def test_on_focus_options_tab_visible(self): | ||
97 | 247 | """ | ||
98 | 248 | Test the correct widget gets focus when the BibleMediaItem receives focus | ||
99 | 249 | """ | ||
100 | 250 | # GIVEN: An instance of :class:`MediaManagerItem` and mocked out tabs and primary widgets | ||
101 | 251 | self.media_item.search_tab = MagicMock(**{'isVisible.return_value': False}) | ||
102 | 252 | self.media_item.search_edit = MagicMock() | ||
103 | 253 | self.media_item.select_tab = MagicMock(**{'isVisible.return_value': False}) | ||
104 | 254 | self.media_item.select_book_combo_box = MagicMock() | ||
105 | 255 | self.media_item.options_tab = MagicMock(**{'isVisible.return_value': True}) | ||
106 | 256 | self.media_item.version_combo_box = MagicMock() | ||
107 | 257 | |||
108 | 258 | # WHEN: Calling on_focus | ||
109 | 259 | self.media_item.on_focus() | ||
110 | 260 | |||
111 | 261 | # THEN: version_combo_box have received focus | ||
112 | 262 | self.media_item.search_edit.setFocus.assert_not_called() | ||
113 | 263 | self.media_item.search_edit.selectAll.assert_not_called() | ||
114 | 264 | self.media_item.select_book_combo_box.setFocus.assert_not_called() | ||
115 | 265 | self.media_item.version_combo_box.setFocus.assert_called_once_with() | ||
116 | 232 | 266 | ||
117 | 233 | def test_config_update_show_second_bible(self): | 267 | def test_config_update_show_second_bible(self): |
118 | 234 | """ | 268 | """ |
119 | @@ -611,12 +645,15 @@ | |||
120 | 611 | # GIVEN: An instance of :class:`MediaManagerItem` and mocked out search_tab and select_tab | 645 | # GIVEN: An instance of :class:`MediaManagerItem` and mocked out search_tab and select_tab |
121 | 612 | self.media_item.search_tab = MagicMock() | 646 | self.media_item.search_tab = MagicMock() |
122 | 613 | self.media_item.select_tab = MagicMock() | 647 | self.media_item.select_tab = MagicMock() |
123 | 648 | self.media_item.options_tab = MagicMock() | ||
124 | 649 | self.media_item.search_button = MagicMock() | ||
125 | 614 | with patch.object(self.media_item, 'on_focus'): | 650 | with patch.object(self.media_item, 'on_focus'): |
126 | 615 | 651 | ||
127 | 616 | # WHEN: The search_tab has been selected | 652 | # WHEN: The search_tab has been selected |
129 | 617 | self.media_item.on_search_tab_bar_current_changed(0) | 653 | self.media_item.on_search_tab_bar_current_changed(SearchTabs.Search) |
130 | 618 | 654 | ||
132 | 619 | # THEN: search_tab should be setVisible and select_tab should be hidder | 655 | # THEN: The search_button should be enabled, search_tab should be setVisible and select_tab should be hidden |
133 | 656 | self.media_item.search_button.setEnabled.assert_called_once_with(True) | ||
134 | 620 | self.media_item.search_tab.setVisible.assert_called_once_with(True) | 657 | self.media_item.search_tab.setVisible.assert_called_once_with(True) |
135 | 621 | self.media_item.select_tab.setVisible.assert_called_once_with(False) | 658 | self.media_item.select_tab.setVisible.assert_called_once_with(False) |
136 | 622 | 659 | ||
137 | @@ -627,12 +664,15 @@ | |||
138 | 627 | # GIVEN: An instance of :class:`MediaManagerItem` and mocked out search_tab and select_tab | 664 | # GIVEN: An instance of :class:`MediaManagerItem` and mocked out search_tab and select_tab |
139 | 628 | self.media_item.search_tab = MagicMock() | 665 | self.media_item.search_tab = MagicMock() |
140 | 629 | self.media_item.select_tab = MagicMock() | 666 | self.media_item.select_tab = MagicMock() |
141 | 667 | self.media_item.options_tab = MagicMock() | ||
142 | 668 | self.media_item.search_button = MagicMock() | ||
143 | 630 | with patch.object(self.media_item, 'on_focus'): | 669 | with patch.object(self.media_item, 'on_focus'): |
144 | 631 | 670 | ||
145 | 632 | # WHEN: The select_tab has been selected | 671 | # WHEN: The select_tab has been selected |
147 | 633 | self.media_item.on_search_tab_bar_current_changed(1) | 672 | self.media_item.on_search_tab_bar_current_changed(SearchTabs.Select) |
148 | 634 | 673 | ||
150 | 635 | # THEN: search_tab should be setVisible and select_tab should be hidder | 674 | # THEN: The search_button should be enabled, select_tab should be setVisible and search_tab should be hidden |
151 | 675 | self.media_item.search_button.setEnabled.assert_called_once_with(True) | ||
152 | 636 | self.media_item.search_tab.setVisible.assert_called_once_with(False) | 676 | self.media_item.search_tab.setVisible.assert_called_once_with(False) |
153 | 637 | self.media_item.select_tab.setVisible.assert_called_once_with(True) | 677 | self.media_item.select_tab.setVisible.assert_called_once_with(True) |
154 | 638 | 678 | ||
155 | @@ -660,44 +700,23 @@ | |||
156 | 660 | # THEN: The select_book_combo_box model sort should have been reset | 700 | # THEN: The select_book_combo_box model sort should have been reset |
157 | 661 | self.media_item.select_book_combo_box.model().sort.assert_called_once_with(-1) | 701 | self.media_item.select_book_combo_box.model().sort.assert_called_once_with(-1) |
158 | 662 | 702 | ||
179 | 663 | def test_on_clear_button_clicked_saved_tab(self): | 703 | def test_on_clear_button_clicked(self): |
160 | 664 | """ | ||
161 | 665 | Test on_clear_button_clicked when the saved tab is selected | ||
162 | 666 | """ | ||
163 | 667 | # GIVEN: An instance of :class:`MediaManagerItem` and mocked out saved_tab and select_tab and a mocked out | ||
164 | 668 | # list_view and search_edit | ||
165 | 669 | self.media_item.list_view = MagicMock() | ||
166 | 670 | self.media_item.search_edit = MagicMock() | ||
167 | 671 | self.media_item.results_view_tab = MagicMock(**{'currentIndex.return_value': ResultsTab.Saved}) | ||
168 | 672 | self.media_item.saved_results = ['Some', 'Results'] | ||
169 | 673 | with patch.object(self.media_item, 'on_focus'): | ||
170 | 674 | |||
171 | 675 | # WHEN: Calling on_clear_button_clicked | ||
172 | 676 | self.media_item.on_clear_button_clicked() | ||
173 | 677 | |||
174 | 678 | # THEN: The list_view should be cleared | ||
175 | 679 | self.assertEqual(self.media_item.saved_results, []) | ||
176 | 680 | self.media_item.list_view.clear.assert_called_once_with() | ||
177 | 681 | |||
178 | 682 | def test_on_clear_button_clicked_search_tab(self): | ||
180 | 683 | """ | 704 | """ |
181 | 684 | Test on_clear_button_clicked when the search tab is selected | 705 | Test on_clear_button_clicked when the search tab is selected |
182 | 685 | """ | 706 | """ |
183 | 686 | # GIVEN: An instance of :class:`MediaManagerItem` and mocked out search_tab and select_tab and a mocked out | 707 | # GIVEN: An instance of :class:`MediaManagerItem` and mocked out search_tab and select_tab and a mocked out |
184 | 687 | # list_view and search_edit | 708 | # list_view and search_edit |
187 | 688 | self.media_item.list_view = MagicMock() | 709 | self.media_item.list_view = MagicMock(**{'selectedItems.return_value': ['Some', 'Results']}) |
186 | 689 | self.media_item.search_edit = MagicMock() | ||
188 | 690 | self.media_item.results_view_tab = MagicMock(**{'currentIndex.return_value': ResultsTab.Search}) | 710 | self.media_item.results_view_tab = MagicMock(**{'currentIndex.return_value': ResultsTab.Search}) |
191 | 691 | self.media_item.current_results = ['Some', 'Results'] | 711 | with patch.object(self.media_item, 'on_results_view_tab_total_update'): |
190 | 692 | with patch.object(self.media_item, 'on_focus'): | ||
192 | 693 | 712 | ||
193 | 694 | # WHEN: Calling on_clear_button_clicked | 713 | # WHEN: Calling on_clear_button_clicked |
194 | 695 | self.media_item.on_clear_button_clicked() | 714 | self.media_item.on_clear_button_clicked() |
195 | 696 | 715 | ||
196 | 697 | # THEN: The list_view and the search_edit should be cleared | 716 | # THEN: The list_view and the search_edit should be cleared |
197 | 698 | self.assertEqual(self.media_item.current_results, []) | 717 | self.assertEqual(self.media_item.current_results, []) |
200 | 699 | self.media_item.list_view.clear.assert_called_once_with() | 718 | self.assertEqual(self.media_item.list_view.takeItem.call_count, 2) |
201 | 700 | self.media_item.search_edit.clear.assert_called_once_with() | 719 | self.media_item.list_view.row.assert_has_calls([call('Some'), call('Results')]) |
202 | 701 | 720 | ||
203 | 702 | def test_on_save_results_button_clicked(self): | 721 | def test_on_save_results_button_clicked(self): |
204 | 703 | """ | 722 | """ |
205 | @@ -809,6 +828,7 @@ | |||
206 | 809 | # to the dialog box | 828 | # to the dialog box |
207 | 810 | self.media_item.second_bible = None | 829 | self.media_item.second_bible = None |
208 | 811 | self.media_item.second_combo_box = MagicMock(**{'currentData.return_value': self.mocked_bible_1}) | 830 | self.media_item.second_combo_box = MagicMock(**{'currentData.return_value': self.mocked_bible_1}) |
209 | 831 | self.media_item.saved_results = ['saved_results'] | ||
210 | 812 | self.media_item.on_second_combo_box_index_changed(5) | 832 | self.media_item.on_second_combo_box_index_changed(5) |
211 | 813 | 833 | ||
212 | 814 | # THEN: The list_view should be cleared and the currently selected bible should not be channged | 834 | # THEN: The list_view should be cleared and the currently selected bible should not be channged |
213 | @@ -836,6 +856,7 @@ | |||
214 | 836 | # to the dialog box | 856 | # to the dialog box |
215 | 837 | self.media_item.second_bible = None | 857 | self.media_item.second_bible = None |
216 | 838 | self.media_item.second_combo_box = MagicMock(**{'currentData.return_value': self.mocked_bible_1}) | 858 | self.media_item.second_combo_box = MagicMock(**{'currentData.return_value': self.mocked_bible_1}) |
217 | 859 | self.media_item.saved_results = ['saved_results'] | ||
218 | 839 | self.media_item.on_second_combo_box_index_changed(5) | 860 | self.media_item.on_second_combo_box_index_changed(5) |
219 | 840 | 861 | ||
220 | 841 | # THEN: The selected bible should be set as the current bible | 862 | # THEN: The selected bible should be set as the current bible |
221 | @@ -862,6 +883,7 @@ | |||
222 | 862 | # to the dialog box | 883 | # to the dialog box |
223 | 863 | self.media_item.second_bible = self.mocked_bible_1 | 884 | self.media_item.second_bible = self.mocked_bible_1 |
224 | 864 | self.media_item.second_combo_box = MagicMock(**{'currentData.return_value': None}) | 885 | self.media_item.second_combo_box = MagicMock(**{'currentData.return_value': None}) |
225 | 886 | self.media_item.saved_results = ['saved_results'] | ||
226 | 865 | self.media_item.on_second_combo_box_index_changed(0) | 887 | self.media_item.on_second_combo_box_index_changed(0) |
227 | 866 | 888 | ||
228 | 867 | # THEN: The selected bible should be set as the current bible | 889 | # THEN: The selected bible should be set as the current bible |
229 | @@ -902,6 +924,7 @@ | |||
230 | 902 | self.media_item.select_book_combo_box = MagicMock(**{'currentData.return_value': 2}) | 924 | self.media_item.select_book_combo_box = MagicMock(**{'currentData.return_value': 2}) |
231 | 903 | self.media_item.bible = self.mocked_bible_1 | 925 | self.media_item.bible = self.mocked_bible_1 |
232 | 904 | self.mocked_plugin.manager.get_verse_count_by_book_ref_id.return_value = 6 | 926 | self.mocked_plugin.manager.get_verse_count_by_book_ref_id.return_value = 6 |
233 | 927 | self.media_item.select_tab = MagicMock(**{'isVisible.return_value': True}) | ||
234 | 905 | self.media_item.search_button = MagicMock() | 928 | self.media_item.search_button = MagicMock() |
235 | 906 | with patch.object(self.media_item, 'adjust_combo_box') as mocked_adjust_combo_box: | 929 | with patch.object(self.media_item, 'adjust_combo_box') as mocked_adjust_combo_box: |
236 | 907 | # WHEN: Calling on_advanced_book_combo_box | 930 | # WHEN: Calling on_advanced_book_combo_box |
237 | @@ -1383,6 +1406,8 @@ | |||
238 | 1383 | # 'bibles/is search while typing enabled' is requested | 1406 | # 'bibles/is search while typing enabled' is requested |
239 | 1384 | self.setting_values = {'bibles/is search while typing enabled': True} | 1407 | self.setting_values = {'bibles/is search while typing enabled': True} |
240 | 1385 | self.media_item.search_timer.isActive.return_value = False | 1408 | self.media_item.search_timer.isActive.return_value = False |
241 | 1409 | self.media_item.bible = self.mocked_bible_1 | ||
242 | 1410 | self.media_item.bible.is_web_bible = False | ||
243 | 1386 | 1411 | ||
244 | 1387 | # WHEN: Calling on_search_edit_text_changed | 1412 | # WHEN: Calling on_search_edit_text_changed |
245 | 1388 | self.media_item.on_search_edit_text_changed() | 1413 | self.media_item.on_search_edit_text_changed() |
246 | @@ -1402,7 +1427,7 @@ | |||
247 | 1402 | self.media_item.on_search_timer_timeout() | 1427 | self.media_item.on_search_timer_timeout() |
248 | 1403 | 1428 | ||
249 | 1404 | # THEN: The search_status should be set to SearchAsYouType and text_search should have been called | 1429 | # THEN: The search_status should be set to SearchAsYouType and text_search should have been called |
251 | 1405 | self.assertEqual(self.media_item.search_status, SearchStatus().SearchAsYouType) | 1430 | self.assertEqual(self.media_item.search_status, SearchStatus.SearchAsYouType) |
252 | 1406 | mocked_text_search.assert_called_once_with() | 1431 | mocked_text_search.assert_called_once_with() |
253 | 1407 | 1432 | ||
254 | 1408 | def test_display_results_no_results(self): | 1433 | def test_display_results_no_results(self): |
255 | 1409 | 1434 | ||
256 | === modified file 'tests/interfaces/openlp_core_ui/test_projectoreditform.py' | |||
257 | --- tests/interfaces/openlp_core_ui/test_projectoreditform.py 2017-04-24 05:17:55 +0000 | |||
258 | +++ tests/interfaces/openlp_core_ui/test_projectoreditform.py 2017-06-03 23:27:29 +0000 | |||
259 | @@ -45,8 +45,8 @@ | |||
260 | 45 | 45 | ||
261 | 46 | :return: None | 46 | :return: None |
262 | 47 | """ | 47 | """ |
263 | 48 | self.setup_application() | ||
264 | 48 | self.build_settings() | 49 | self.build_settings() |
265 | 49 | self.setup_application() | ||
266 | 50 | Registry.create() | 50 | Registry.create() |
267 | 51 | with patch('openlp.core.lib.projector.db.init_url') as mocked_init_url: | 51 | with patch('openlp.core.lib.projector.db.init_url') as mocked_init_url: |
268 | 52 | if os.path.exists(TEST_DB): | 52 | if os.path.exists(TEST_DB): |
269 | 53 | 53 | ||
270 | === modified file 'tests/interfaces/openlp_plugins/bibles/test_lib_manager.py' | |||
271 | --- tests/interfaces/openlp_plugins/bibles/test_lib_manager.py 2017-04-24 05:17:55 +0000 | |||
272 | +++ tests/interfaces/openlp_plugins/bibles/test_lib_manager.py 2017-06-03 23:27:29 +0000 | |||
273 | @@ -38,6 +38,7 @@ | |||
274 | 38 | """ | 38 | """ |
275 | 39 | Set up the environment for testing bible queries with 1 Timothy 3 | 39 | Set up the environment for testing bible queries with 1 Timothy 3 |
276 | 40 | """ | 40 | """ |
277 | 41 | self.setup_application() | ||
278 | 41 | self.build_settings() | 42 | self.build_settings() |
279 | 42 | Registry.create() | 43 | Registry.create() |
280 | 43 | Registry().register('service_list', MagicMock()) | 44 | Registry().register('service_list', MagicMock()) |
281 | 44 | 45 | ||
282 | === modified file 'tests/interfaces/openlp_plugins/bibles/test_lib_parse_reference.py' | |||
283 | --- tests/interfaces/openlp_plugins/bibles/test_lib_parse_reference.py 2017-05-26 13:30:54 +0000 | |||
284 | +++ tests/interfaces/openlp_plugins/bibles/test_lib_parse_reference.py 2017-06-03 23:27:29 +0000 | |||
285 | @@ -38,6 +38,7 @@ | |||
286 | 38 | """ | 38 | """ |
287 | 39 | Set up the environment for testing bible parse reference | 39 | Set up the environment for testing bible parse reference |
288 | 40 | """ | 40 | """ |
289 | 41 | self.setup_application() | ||
290 | 41 | self.build_settings() | 42 | self.build_settings() |
291 | 42 | Registry.create() | 43 | Registry.create() |
292 | 43 | Registry().register('service_list', MagicMock()) | 44 | Registry().register('service_list', MagicMock()) |