[IMP]hr: change test case
bzr revid: kjo@tinyerp.com-20120611093423-xbc75ku9f6f1jt1q
This commit is contained in:
parent
feef878efd
commit
b305360baf
|
@ -26,13 +26,13 @@
|
||||||
!python {model: hr.employee}: |
|
!python {model: hr.employee}: |
|
||||||
self.write(cr, uid, [ref('employee_niv')], {'job_id':ref('job_developer')})
|
self.write(cr, uid, [ref('employee_niv')], {'job_id':ref('job_developer')})
|
||||||
-
|
-
|
||||||
Now I dont want to recruit new employee for this position. so I mark it as Done.
|
Now I dont want to recruit new employee for this position. so I mark it as Open.
|
||||||
-
|
-
|
||||||
!python {model: hr.job}: |
|
!python {model: hr.job}: |
|
||||||
self.job_done(cr, uid, [ref('job_developer')])
|
self.job_open(cr, uid, [ref('job_developer')])
|
||||||
-
|
-
|
||||||
I check 'state' and number of 'Expected in Recruitment' after closing the Job position.
|
I check 'state' and number of 'Expected in Recruitment' after closing the Job position.
|
||||||
-
|
-
|
||||||
!assert {model: hr.job, id: job_developer, string: Job position is in 'done' state and no_of_recruitment = 0}:
|
!assert {model: hr.job, id: job_developer, string: Job position is in 'open' state and no_of_recruitment = 0}:
|
||||||
- state == 'done'
|
- state == 'open'
|
||||||
- no_of_recruitment == 0
|
- no_of_recruitment == 0
|
||||||
|
|
Loading…
Reference in New Issue