[FIX] hr_evaluation: YAML
authorMTR(OpenERP) <>
Thu, 19 Aug 2010 11:17:49 +0000 (16:47 +0530)
committerMustufa Rangwala <mra@mra-laptop>
Thu, 19 Aug 2010 11:17:49 +0000 (16:47 +0530)
bzr revid: mra@mra-laptop-20100819111749-e2ir0jrsb6h9wo7d

addons/hr_evaluation/test/test_hr_evaluation.yml

index cdee65d..1d2acbc 100644 (file)
     progress: 0.0
     state: draft
 -
+  I create an Interview Request record
+- 
+  !record {model: hr.evaluation.interview, id: hr_evaluation_interview_0}:
+    date_deadline: '2010-06-28'
+    evaluation_id: 'hr_evaluation_evaluation_0'
+    survey_id:  hr_evaluation.survey_0
+-
   I check that evaluation is in "Draft" state.
 -
   !assert {model: hr_evaluation.evaluation, id: hr_evaluation_evaluation_0}:
   I close this servey request by giving answer of survey question.
 -
   !python {model: hr.evaluation.interview}: |
-      self.survey_req_done(cr, uid, [ref('hr_evaluation_evaluation_0')])
+    self.survey_req_done(cr, uid, [ref('hr_evaluation_interview_0')])
 -
   I click on "Final Validation" button to finalise evaluation.
 -