Commit 2720826d authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_project: fix test

parent dba5b964
......@@ -154,10 +154,9 @@ class TestProject(ERP5TypeTestCase):
self.assertEqual(task_line_list[0], task.default_task_line)
# Script Used for Task Report Tab
# It shows planned tasks also.
# It doesn't show planned tasks.
task_line_list = project.Project_getSourceProjectRelatedTaskReportList()
self.assertEqual(1, len(task_line_list))
self.assertEqual(task_line_list[0].getObject(), task.default_task_line)
self.assertEqual(0, len(task_line_list))
task.confirm()
self.tic()
......@@ -168,13 +167,13 @@ class TestProject(ERP5TypeTestCase):
self.assertEqual(task_line_list[0], task.default_task_line)
# Script Used for Task Report Tab
# It shows planned tasks also.
task_line_list = project.Project_getSourceProjectRelatedTaskReportList()
self.assertEqual(1, len(task_line_list))
self.assertNotEquals(task_line_list[0], task.default_task_line)
self.assertNotEquals(task_line_list[0].getCausalityRelatedValue(),
task.default_task_line)
def testProject_updateDate(self):
# Create Tasks
task_module = self.getPortalObject().task_module
......
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