Commit d989a322 authored by Ivan Tyagov's avatar Ivan Tyagov

Easier to override bt5 list.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43998 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 84125a6e
......@@ -91,6 +91,12 @@ def makeFileUpload(name, as_name=None):
return FileUpload(path, as_name)
class TestDocumentMixin(ERP5TypeTestCase):
bussiness_template_list = ['erp5_core_proxy_field_legacy',
'erp5_full_text_myisam_catalog','erp5_base',
'erp5_ingestion', 'erp5_ingestion_mysql_innodb_catalog',
'erp5_web', 'erp5_dms']
def setUpOnce(self):
# set a dummy localizer (because normally it is cookie based)
self.portal.Localizer = DummyLocalizer()
......@@ -137,10 +143,7 @@ class TestDocumentMixin(ERP5TypeTestCase):
return getattr(self.getPortal(),'document_module')
def getBusinessTemplateList(self):
return ('erp5_core_proxy_field_legacy',
'erp5_full_text_myisam_catalog','erp5_base',
'erp5_ingestion', 'erp5_ingestion_mysql_innodb_catalog',
'erp5_web', 'erp5_dms')
return self.bussiness_template_list
def getNeededCategoryList(self):
return ()
......@@ -2539,7 +2542,7 @@ class TestDocumentPerformance(TestDocumentMixin):
req_time = (after - before)
# we should have image converted in less than 20s
self.assertTrue(req_time < 30.0)
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestDocument))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment