Remove unnecessary start of patch in test

This commit is contained in:
Tomas Groth 2014-11-28 08:26:33 +00:00
parent 9c64bd9d56
commit 612041dafa
2 changed files with 0 additions and 2 deletions

View File

@ -86,7 +86,6 @@ class TestProjectorDB(TestCase):
""" """
if not hasattr(self, 'projector'): if not hasattr(self, 'projector'):
with patch('openlp.core.lib.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 mocked_init_url.return_value = 'sqlite:///%s' % tmpfile
self.projector = ProjectorDB() self.projector = ProjectorDB()

View File

@ -58,7 +58,6 @@ class TestProjectorManager(TestCase, TestMixin):
Registry.create() Registry.create()
if not hasattr(self, 'projector_manager'): if not hasattr(self, 'projector_manager'):
with patch('openlp.core.lib.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 mocked_init_url.return_value = 'sqlite:///%s' % tmpfile
self.projectordb = ProjectorDB() self.projectordb = ProjectorDB()
if not hasattr(self, 'projector_manager'): if not hasattr(self, 'projector_manager'):