forked from openlp/openlp
Fix projector tests on windows
This commit is contained in:
parent
d267144ea4
commit
9b731aad7a
@ -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()
|
||||
|
@ -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'):
|
||||
|
Loading…
Reference in New Issue
Block a user