Fix projector tests on windows

This commit is contained in:
Tomas Groth 2014-11-27 21:40:56 +00:00
parent d267144ea4
commit 9b731aad7a
2 changed files with 3 additions and 3 deletions

View File

@ -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()

View File

@ -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'):