[IMP] hr_attendance : Improved Test Cases.

bzr revid: mdi@tinyerp.com-20120116070012-8blt2ov12b0qx74b
This commit is contained in:
Divyesh Makwana (Open ERP) 2012-01-16 12:30:12 +05:30
parent 293ee2f2d4
commit 7db3e24af9
1 changed files with 0 additions and 15 deletions

View File

@ -30,21 +30,6 @@
- state == 'absent'
-
In order to check that first attendance must be Sign In.
-
!python {model: hr.attendance}: |
try:
self.create(cr, uid, {employee_id: hr.employee_fp, name: time.strftime('%Y-%m-%d 09:59:25'), action: 'sign_out'}, None)
except Exception, e:
assert e, 'The first attendance must be Sign In'
-
First of all, Employee Sign's In.
-
!record {model: hr.attendance, id: hr_attendance_1}:
employee_id: hr.employee_fp
name: !eval time.strftime('%Y-%m-%d 09:59:25')
action: 'sign_in'
-
In order to check that first attendance must be Sign In.
-
!python {model: hr.attendance}: |
import time