forked from openlp/openlp
More test fixes
This commit is contained in:
parent
9e8b16549c
commit
0066a926e6
@ -45,6 +45,7 @@ class TestMainWindow(TestCase, TestMixin):
|
|||||||
self.app.set_normal_cursor = MagicMock()
|
self.app.set_normal_cursor = MagicMock()
|
||||||
self.app.args = []
|
self.app.args = []
|
||||||
Registry().register('application', self.app)
|
Registry().register('application', self.app)
|
||||||
|
Registry().set_flag('no_web_server', False)
|
||||||
# Mock classes and methods used by mainwindow.
|
# Mock classes and methods used by mainwindow.
|
||||||
with patch('openlp.core.ui.mainwindow.SettingsForm') as mocked_settings_form, \
|
with patch('openlp.core.ui.mainwindow.SettingsForm') as mocked_settings_form, \
|
||||||
patch('openlp.core.ui.mainwindow.ImageManager') as mocked_image_manager, \
|
patch('openlp.core.ui.mainwindow.ImageManager') as mocked_image_manager, \
|
||||||
|
Loading…
Reference in New Issue
Block a user