Commit 6dd02bee authored by Roque's avatar Roque

erp5_web_project_ui_test: update test

parent 8b5dfd60
portal = context.getPortalObject()
project_reference = 'test-project'
publication_section = context.restrictedTraverse('portal_categories/publication_section/project_home_page_for_test')
module = portal.getDefaultModule('Project')
project = module.newContent(portal_type = 'Project',
......@@ -10,8 +11,8 @@ if home_page:
module = portal.getDefaultModule('Web Page')
home_page = module.newContent(portal_type = 'Web Page',
reference = project_reference + '-home.page',
publication_section = 'project_home_page',
follow_up = project.getRelativeUrl())
publication_section_value = publication_section,
follow_up_value = project)
home_page.publishAlive()
print "Project Created"
......
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