[IMP]project_* : Improve the statements
[odoo/odoo.git] / addons / project_scrum / test / scrum_sprint_test.yml
1 -
2   I create a Scrum Sprint Record.
3 -
4   !record {model: project.scrum.sprint, id: project_scrum_sprint_testsprint0}:
5     date_start: !eval time.strftime('%Y-%m-01')
6     date_stop: !eval time.strftime('%Y-%m-17')
7     name: Demo Sprint
8     product_owner_id: base.user_admin
9     project_id: project.project_project_22
10     scrum_master_id: base.user_admin
11     state: draft
12 -
13   I am copying the "Demo Sprint" Sprint.
14 -
15   !python {model: project.scrum.sprint}: |
16     self.copy(cr, uid, ref("project_scrum_sprint_testsprint0"))
17 -
18   I am changing the Project of the "Demo Sprint" Sprint.
19 -
20   !python {model: project.scrum.sprint}: |
21     self.onchange_project_id(cr, uid, [ref("project_scrum_sprint_testsprint0")], ref("project.project_project_9"))
22
23 -
24   I am Opeing the "Demo Sprint" Sprint.
25 -
26   !python {model: project.scrum.sprint}: |
27     self.button_open(cr, uid, [ref("project_scrum_sprint_testsprint0")])
28
29 -
30   I am Setting the "Demo Sprint" Sprint to Pending.
31 -
32   !python {model: project.scrum.sprint}: |
33     self.button_pending(cr, uid, [ref("project_scrum_sprint_testsprint0")])
34
35 -
36   I am Closing the "Demo Sprint" Sprint.
37 -
38   !python {model: project.scrum.sprint}: |
39     self.button_close(cr, uid, [ref("project_scrum_sprint_testsprint0")])
40
41 -
42   I am Setting the "Demo Sprint" Sprint to Draft.
43 -
44   !python {model: project.scrum.sprint}: |
45     self.button_draft(cr, uid, [ref("project_scrum_sprint_testsprint0")])
46
47 -
48   I am Cancelling the "Demo Sprint" Sprint.
49 -
50   !python {model: project.scrum.sprint}: |
51     self.button_cancel(cr, uid, [ref("project_scrum_sprint_testsprint0")])