[IMP]hr: change test case

bzr revid: kjo@tinyerp.com-20120611093423-xbc75ku9f6f1jt1q
This commit is contained in:
Kuldeep Joshi (OpenERP) 2012-06-11 15:04:23 +05:30
parent feef878efd
commit b305360baf
1 changed files with 4 additions and 4 deletions

View File

@ -26,13 +26,13 @@
!python {model: hr.employee}: |
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}: |
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.
-
!assert {model: hr.job, id: job_developer, string: Job position is in 'done' state and no_of_recruitment = 0}:
- state == 'done'
!assert {model: hr.job, id: job_developer, string: Job position is in 'open' state and no_of_recruitment = 0}:
- state == 'open'
- no_of_recruitment == 0