From 609f5a85128b75ccbec05081a4d39e89a6ae579f Mon Sep 17 00:00:00 2001 From: Jonathan Springer Date: Tue, 1 Dec 2015 14:47:46 -0500 Subject: [PATCH] Fix projector tests --- tests/functional/openlp_core_lib/test_projectordb.py | 1 - tests/interfaces/openlp_core_ui/test_projectormanager.py | 1 - tests/interfaces/openlp_core_ui/test_projectorsourceform.py | 1 - 3 files changed, 3 deletions(-) diff --git a/tests/functional/openlp_core_lib/test_projectordb.py b/tests/functional/openlp_core_lib/test_projectordb.py index bf6c1688e..176ad7049 100644 --- a/tests/functional/openlp_core_lib/test_projectordb.py +++ b/tests/functional/openlp_core_lib/test_projectordb.py @@ -90,7 +90,6 @@ class TestProjectorDB(TestCase): """ if not hasattr(self, 'projector'): with patch('openlp.core.lib.projector.db.init_url') as mocked_init_url: - mocked_init_url.start() mocked_init_url.return_value = 'sqlite:///%s' % tmpfile self.projector = ProjectorDB() diff --git a/tests/interfaces/openlp_core_ui/test_projectormanager.py b/tests/interfaces/openlp_core_ui/test_projectormanager.py index 3a0c12acb..7eedeadf8 100644 --- a/tests/interfaces/openlp_core_ui/test_projectormanager.py +++ b/tests/interfaces/openlp_core_ui/test_projectormanager.py @@ -51,7 +51,6 @@ class TestProjectorManager(TestCase, TestMixin): Registry.create() if not hasattr(self, 'projector_manager'): with patch('openlp.core.lib.projector.db.init_url') as mocked_init_url: - mocked_init_url.start() mocked_init_url.return_value = 'sqlite:///%s' % tmpfile self.projectordb = ProjectorDB() if not hasattr(self, 'projector_manager'): diff --git a/tests/interfaces/openlp_core_ui/test_projectorsourceform.py b/tests/interfaces/openlp_core_ui/test_projectorsourceform.py index 018cbb3e7..218ec92ed 100644 --- a/tests/interfaces/openlp_core_ui/test_projectorsourceform.py +++ b/tests/interfaces/openlp_core_ui/test_projectorsourceform.py @@ -66,7 +66,6 @@ class ProjectorSourceFormTest(TestCase, TestMixin): """ Set up anything necessary for all tests """ - mocked_init_url.start() mocked_init_url.return_value = 'sqlite:///{}'.format(tmpfile) self.build_settings() self.setup_application()