Remove old testing framework in setup()

This commit is contained in:
Ken Roberts 2015-01-06 16:36:39 -08:00
parent 093f853fd9
commit 3a9b61d9dc
1 changed files with 5 additions and 7 deletions

View File

@ -59,13 +59,11 @@ class TestProjectorEditForm(TestCase, TestMixin):
self.build_settings()
self.setup_application()
Registry.create()
if not hasattr(self, 'projector_form'):
with patch('openlp.core.lib.projector.db.init_url') as mocked_init_url:
mocked_init_url.start()
mocked_init_url.return_value = 'sqlite:///{}'.format(tmpfile)
self.projectordb = ProjectorDB()
if not hasattr(self, 'projector_edit_form'):
self.projector_form = ProjectorEditForm(projectordb=self.projectordb)
with patch('openlp.core.lib.projector.db.init_url') as mocked_init_url:
mocked_init_url.start()
mocked_init_url.return_value = 'sqlite:///{}'.format(tmpfile)
self.projectordb = ProjectorDB()
self.projector_form = ProjectorEditForm(projectordb=self.projectordb)
def tearDown(self):
"""