Commit 2ea66a1d authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

assign projects in Task Report test.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30297 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3861c80e
No related merge requests found
......@@ -103,6 +103,7 @@ class TestTaskMixin:
stepCreateOrganisation \
stepCreateOrganisation \
stepCreateResource \
stepCreateProject \
stepCreateSimpleTaskReport \
stepCreateCurrency \
stepFillTaskReportWithData \
......@@ -280,6 +281,7 @@ class TestTaskMixin:
destination_value=organisation2,
destination_section_value=organisation2,
source_project_value=project,
destination_project_value=project,
description=self.task_description % task.getId(),
start_date = self.datetime + 10,
stop_date = self.datetime + 20,)
......@@ -292,6 +294,7 @@ class TestTaskMixin:
self.stepSetTaskValues(sequence=sequence,
sequence_list=sequence_list, **kw)
task = sequence.get('task')
project = sequence.get('project')
resource = sequence.get('resource_list')[0]
requirement = sequence.get('requirement')
task.edit(task_line_resource_value = resource,
......@@ -325,10 +328,13 @@ class TestTaskMixin:
organisation_list = sequence.get('organisation_list')
organisation1 = organisation_list[0]
organisation2 = organisation_list[1]
project = sequence.get('project')
task_report.edit(source_value=organisation1,
source_section_value=organisation1,
destination_value=organisation1,
destination_section_value=organisation2,
source_project_value=project,
destination_project_value=project,
start_date = self.datetime + 10,
stop_date = self.datetime + 20,)
sequence.edit( task_report = task_report)
......
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