Commit cb2474a5 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fixup! test: create ERP5 Login instead of putting password in Person.

parent abc46ef5
...@@ -810,6 +810,9 @@ class TestLocalRoleManagement(ERP5TypeTestCase): ...@@ -810,6 +810,9 @@ class TestLocalRoleManagement(ERP5TypeTestCase):
assignment = loginable_person.newContent(portal_type='Assignment', assignment = loginable_person.newContent(portal_type='Assignment',
function='another_subcat') function='another_subcat')
assignment.open() assignment.open()
loginable_person.newContent(portal_type='ERP5 Login',
reference='guest',
password='guest').validate()
self.tic() self.tic()
person_module_type_information = self.getTypesTool()['Person Module'] person_module_type_information = self.getTypesTool()['Person Module']
...@@ -864,11 +867,13 @@ class TestLocalRoleManagement(ERP5TypeTestCase): ...@@ -864,11 +867,13 @@ class TestLocalRoleManagement(ERP5TypeTestCase):
reference = 'UserReferenceTextWhichShouldBeHardToGeneratedInAnyHumanOrComputerLanguage' reference = 'UserReferenceTextWhichShouldBeHardToGeneratedInAnyHumanOrComputerLanguage'
loginable_person = self.getPersonModule().newContent(portal_type='Person', loginable_person = self.getPersonModule().newContent(portal_type='Person',
reference=reference, reference=reference)
password='guest')
assignment = loginable_person.newContent(portal_type='Assignment', assignment = loginable_person.newContent(portal_type='Assignment',
function='another_subcat') function='another_subcat')
assignment.open() assignment.open()
loginable_person.newContent(portal_type='ERP5 Login',
reference=reference,
password='guest').validate()
portal_types = portal.portal_types portal_types = portal.portal_types
for portal_type in ('Person Module', 'Person', 'Web Site Module', 'Web Site', for portal_type in ('Person Module', 'Person', 'Web Site Module', 'Web Site',
'Web Page'): 'Web Page'):
......
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