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
...@@ -103,6 +103,7 @@ class TestTaskMixin: ...@@ -103,6 +103,7 @@ class TestTaskMixin:
stepCreateOrganisation \ stepCreateOrganisation \
stepCreateOrganisation \ stepCreateOrganisation \
stepCreateResource \ stepCreateResource \
stepCreateProject \
stepCreateSimpleTaskReport \ stepCreateSimpleTaskReport \
stepCreateCurrency \ stepCreateCurrency \
stepFillTaskReportWithData \ stepFillTaskReportWithData \
...@@ -280,6 +281,7 @@ class TestTaskMixin: ...@@ -280,6 +281,7 @@ class TestTaskMixin:
destination_value=organisation2, destination_value=organisation2,
destination_section_value=organisation2, destination_section_value=organisation2,
source_project_value=project, source_project_value=project,
destination_project_value=project,
description=self.task_description % task.getId(), description=self.task_description % task.getId(),
start_date = self.datetime + 10, start_date = self.datetime + 10,
stop_date = self.datetime + 20,) stop_date = self.datetime + 20,)
...@@ -292,6 +294,7 @@ class TestTaskMixin: ...@@ -292,6 +294,7 @@ class TestTaskMixin:
self.stepSetTaskValues(sequence=sequence, self.stepSetTaskValues(sequence=sequence,
sequence_list=sequence_list, **kw) sequence_list=sequence_list, **kw)
task = sequence.get('task') task = sequence.get('task')
project = sequence.get('project')
resource = sequence.get('resource_list')[0] resource = sequence.get('resource_list')[0]
requirement = sequence.get('requirement') requirement = sequence.get('requirement')
task.edit(task_line_resource_value = resource, task.edit(task_line_resource_value = resource,
...@@ -325,10 +328,13 @@ class TestTaskMixin: ...@@ -325,10 +328,13 @@ class TestTaskMixin:
organisation_list = sequence.get('organisation_list') organisation_list = sequence.get('organisation_list')
organisation1 = organisation_list[0] organisation1 = organisation_list[0]
organisation2 = organisation_list[1] organisation2 = organisation_list[1]
project = sequence.get('project')
task_report.edit(source_value=organisation1, task_report.edit(source_value=organisation1,
source_section_value=organisation1, source_section_value=organisation1,
destination_value=organisation1, destination_value=organisation1,
destination_section_value=organisation2, destination_section_value=organisation2,
source_project_value=project,
destination_project_value=project,
start_date = self.datetime + 10, start_date = self.datetime + 10,
stop_date = self.datetime + 20,) stop_date = self.datetime + 20,)
sequence.edit( task_report = task_report) 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