From 9b731aad7a0f93ba6e83cb9f75da0e27328f0e83 Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Thu, 27 Nov 2014 21:40:56 +0000 Subject: [PATCH] Fix projector tests on windows --- tests/functional/openlp_core_lib/test_projectordb.py | 2 +- tests/interfaces/openlp_core_ui/test_projectormanager.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/functional/openlp_core_lib/test_projectordb.py b/tests/functional/openlp_core_lib/test_projectordb.py index ba79b59c3..ecb78b3ef 100644 --- a/tests/functional/openlp_core_lib/test_projectordb.py +++ b/tests/functional/openlp_core_lib/test_projectordb.py @@ -85,7 +85,7 @@ class TestProjectorDB(TestCase): Set up anything necessary for all tests """ if not hasattr(self, 'projector'): - with patch('openlp.core.lib.projector.db.init_url') as mocked_init_url: + with patch('openlp.core.lib.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 a46b0b93c..f21171fb5 100644 --- a/tests/interfaces/openlp_core_ui/test_projectormanager.py +++ b/tests/interfaces/openlp_core_ui/test_projectormanager.py @@ -57,8 +57,8 @@ class TestProjectorManager(TestCase, TestMixin): self.setup_application() 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() + with patch('openlp.core.lib.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'):