fixed some seg faults

This commit is contained in:
Philip Ridout 2017-06-04 00:27:19 +01:00
parent a3d95acabd
commit 114a2a12a8
3 changed files with 3 additions and 1 deletions

View File

@ -45,8 +45,8 @@ class TestProjectorEditForm(TestCase, TestMixin):
:return: None
"""
self.build_settings()
self.setup_application()
self.build_settings()
Registry.create()
with patch('openlp.core.lib.projector.db.init_url') as mocked_init_url:
if os.path.exists(TEST_DB):

View File

@ -38,6 +38,7 @@ class TestBibleManager(TestCase, TestMixin):
"""
Set up the environment for testing bible queries with 1 Timothy 3
"""
self.setup_application()
self.build_settings()
Registry.create()
Registry().register('service_list', MagicMock())

View File

@ -38,6 +38,7 @@ class TestBibleManager(TestCase, TestMixin):
"""
Set up the environment for testing bible parse reference
"""
self.setup_application()
self.build_settings()
Registry.create()
Registry().register('service_list', MagicMock())