Commit 02e073f5 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_access_token: Include missing getBusinessTemplateList

parent cb4e6245
...@@ -4,6 +4,10 @@ from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase ...@@ -4,6 +4,10 @@ from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
class TestERP5AccessTokenAlarm(ERP5TypeTestCase): class TestERP5AccessTokenAlarm(ERP5TypeTestCase):
def getBusinessTemplateList(self):
return ('erp5_base',
'erp5_access_token')
def test_alarm_old_validated_restricted_access_token(self): def test_alarm_old_validated_restricted_access_token(self):
access_token = self.portal.access_token_module.newContent( access_token = self.portal.access_token_module.newContent(
portal_type="One Time Restricted Access Token", portal_type="One Time Restricted Access Token",
......
...@@ -7,6 +7,10 @@ class TestERP5AccessTokenSkins(ERP5TypeTestCase): ...@@ -7,6 +7,10 @@ class TestERP5AccessTokenSkins(ERP5TypeTestCase):
test_token_extraction_id = 'test_erp5_access_token_extraction' test_token_extraction_id = 'test_erp5_access_token_extraction'
def getBusinessTemplateList(self):
return ('erp5_base',
'erp5_access_token')
def generateNewId(self): def generateNewId(self):
return str(self.portal.portal_ids.generateNewId( return str(self.portal.portal_ids.generateNewId(
id_group=('erp5_access_token_test_id'))) id_group=('erp5_access_token_test_id')))
......
6 7
\ No newline at end of file \ No newline at end of file
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