diff --git a/addons/project/test/test_project.yml b/addons/project/test/test_project.yml index 3a4c8f501da..25b3e94b57f 100644 --- a/addons/project/test/test_project.yml +++ b/addons/project/test/test_project.yml @@ -1,5 +1,5 @@ - - Test project template functionality + Test project template feature - Create project 'OpenERP Training Programme' - @@ -145,7 +145,7 @@ name: Training on OpenERP modules, models and classes user_id: base.user_root - - Check for effective hours and remaining hours + Check for effective hours and remaining hours, effective_hours must be equal to 10 - !assert {model: project.task, id: project_task_technicaltraining0, severity: error, string: After work task of 10 hours effective_hours must be equal to 10}: - remaining_hours == 20 @@ -162,7 +162,7 @@ name: Training on OpenERP xml views user_id: base.user_root - - Check for effective hours and remaining hours + Check for effective hours and remaining hours, effective_hours must be equal to 20 - !assert {model: project.task, id: project_task_technicaltraining0, severity: error, string: After one more work task of 10 hours effective_hours must be equal to 20}: - remaining_hours == 10 @@ -179,7 +179,7 @@ name: Training on workflows user_id: base.user_root - - Check for effective hours and remaining hours + Check for effective hours and remaining hours, effective_hours must be equal to 30 - !assert {model: project.task, id: project_task_technicaltraining0, severity: error, string: After one more work task of 10 hours effective_hours must be equal to 30}: - remaining_hours == 0 @@ -192,7 +192,7 @@ !record {model: config.compute.remaining, id: config_compute_remaining_0}: remaining_hours: 10.0 - - Reevaluating the task + Reevaluate the task - !python {model: config.compute.remaining}: | self.compute_hours(cr, uid, [ref("config_compute_remaining_0")], {"lang": "en_US", @@ -201,7 +201,7 @@ [ref("project_task_technicaltraining0")], "active_id": ref("project_task_technicaltraining0"), }) - - Check for effective hours and remaining hours + Check for effective hours and remaining hours, remaining_hours must be 10 while planned_hours remains 30 - !assert {model: project.task, id: project_task_technicaltraining0, severity: error, string: After reevaluating the task with 10 hours remaining_hours must be 10 while planned_hours remains 30}: - planned_hours == 30 @@ -250,7 +250,7 @@ !record {model: config.compute.remaining, id: config_compute_remaining_1}: remaining_hours: 10.0 - - Reevaluating the task with 10 hours remaining + Reevaluate the task with 10 hours remaining - !python {model: config.compute.remaining}: | self.compute_hours(cr, uid, [ref("config_compute_remaining_1")], {"lang": "en_US", @@ -259,7 +259,7 @@ 1, "search_default_current": 1, "active_ids": [ref("project_task_technicaltraining0")], "active_id": ref("project_task_technicaltraining0"), }) - - Check for effective hours and remaining hours + Check for effective hours and remaining hours, remaining_hours must be 10 while planned_hours remains 30 - !assert {model: project.task, id: project_task_technicaltraining0, severity: error, string: After reevaluating the task with 10 hours remaining_hours must be 10 while planned_hours remains 30}: - planned_hours == 30 diff --git a/addons/project_issue/test/test_project_issue_states.yml b/addons/project_issue/test/test_project_issue_states.yml index b846eba5bd0..ee48c9a9df0 100644 --- a/addons/project_issue/test/test_project_issue_states.yml +++ b/addons/project_issue/test/test_project_issue_states.yml @@ -7,7 +7,12 @@ project_id: project.project_project_22 working_hours_close: 0.0 working_hours_open: 0.0 - +- + Check if issue in 'draft' state +- + !assert {model: project.issue, id: project_issue_stockmovedates0, severity: error, string: Issue is in draft state}: + - state == 'draft' + - Open the issue - diff --git a/addons/project_planning/test/planning_states.yml b/addons/project_planning/test/planning_states.yml index 3fa11bcbea1..12dd38c8247 100644 --- a/addons/project_planning/test/planning_states.yml +++ b/addons/project_planning/test/planning_states.yml @@ -26,7 +26,7 @@ - state == "open" - - Performing an osv_memory action action_cancel on module report_account_analytic.planning + Cancel the planning - !python {model: report_account_analytic.planning}: | self.action_cancel(cr, uid, [ref("report_account_analytic_planning_projectplanning0")], @@ -41,7 +41,7 @@ - state == "cancel" - - Performing an osv_memory action action_draft on module report_account_analytic.planning + Reopen the planning - !python {model: report_account_analytic.planning}: | self.action_draft(cr, uid, [ref("report_account_analytic_planning_projectplanning0")], @@ -56,7 +56,7 @@ - state == "draft" - - Performing an osv_memory action action_open on module report_account_analytic.planning + Open the planning - !python {model: report_account_analytic.planning}: | self.action_open(cr, uid, [ref("report_account_analytic_planning_projectplanning0")], @@ -71,7 +71,7 @@ - state == "open" - - Performing an osv_memory action action_done on module report_account_analytic.planning + Close the planning - !python {model: report_account_analytic.planning}: | self.action_done(cr, uid, [ref("report_account_analytic_planning_projectplanning0")], diff --git a/addons/project_retro_planning/test/deadline_change.yml b/addons/project_retro_planning/test/deadline_change.yml index 536d9e865a9..0778c5c883b 100644 --- a/addons/project_retro_planning/test/deadline_change.yml +++ b/addons/project_retro_planning/test/deadline_change.yml @@ -21,7 +21,7 @@ state: draft - - Check if project.task deadline_date and start_date changes upon changing + Check if task deadline_date and start_date changes upon changing its project's end_date - !python {model: project.project}: | from datetime import datetime, date diff --git a/addons/project_timesheet/test/worktask_entry_to_timesheetline_entry.yml b/addons/project_timesheet/test/worktask_entry_to_timesheetline_entry.yml index e95a5f6a5b7..7e275067673 100644 --- a/addons/project_timesheet/test/worktask_entry_to_timesheetline_entry.yml +++ b/addons/project_timesheet/test/worktask_entry_to_timesheetline_entry.yml @@ -98,5 +98,5 @@ - Check for timesheet_ids in hr manager's timesheet - - !assert {model: hr_timesheet_sheet.sheet, id: hr_timesheet_sheet_sheet_sheetforhrmanager0, string: After hr manager's work task, len of timesheet line of current timesheet must be greater then 1}: + !assert {model: hr_timesheet_sheet.sheet, id: hr_timesheet_sheet_sheet_sheetforhrmanager0, string: After hr manager's work task, length of timesheet line of current timesheet must be greater then 1}: - len(timesheet_ids) > 0 \ No newline at end of file