forked from openlp/openlp
Remove old testing framework in setup()
This commit is contained in:
parent
093f853fd9
commit
3a9b61d9dc
@ -59,13 +59,11 @@ class TestProjectorEditForm(TestCase, TestMixin):
|
|||||||
self.build_settings()
|
self.build_settings()
|
||||||
self.setup_application()
|
self.setup_application()
|
||||||
Registry.create()
|
Registry.create()
|
||||||
if not hasattr(self, 'projector_form'):
|
with patch('openlp.core.lib.projector.db.init_url') as mocked_init_url:
|
||||||
with patch('openlp.core.lib.projector.db.init_url') as mocked_init_url:
|
mocked_init_url.start()
|
||||||
mocked_init_url.start()
|
mocked_init_url.return_value = 'sqlite:///{}'.format(tmpfile)
|
||||||
mocked_init_url.return_value = 'sqlite:///{}'.format(tmpfile)
|
self.projectordb = ProjectorDB()
|
||||||
self.projectordb = ProjectorDB()
|
self.projector_form = ProjectorEditForm(projectordb=self.projectordb)
|
||||||
if not hasattr(self, 'projector_edit_form'):
|
|
||||||
self.projector_form = ProjectorEditForm(projectordb=self.projectordb)
|
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user