Skip to content
Snippets Groups Projects
Commit f3742f05 authored by Vo Minh Thu's avatar Vo Minh Thu
Browse files

[FIX] test_ir_sequence: reduce the number of call to next() (to reduce test time).

bzr revid: vmt@openerp.com-20120903145929-p4kp6eotkcflletk
parent 4498663b
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
##############################################################################
#
......
......@@ -186,7 +186,7 @@ class test_ir_sequence_generate(unittest2.TestCase):
cr = cursor()
f = lambda *a: registry('ir.sequence').next_by_code(cr, ADMIN_USER_ID, 'test_sequence_type_5', {})
assert all(str(x) == f() for x in xrange(1,1000))
assert all(str(x) == f() for x in xrange(1,10))
cr.commit()
cr.close()
......@@ -204,7 +204,7 @@ class test_ir_sequence_generate(unittest2.TestCase):
cr = cursor()
f = lambda *a: registry('ir.sequence').next_by_code(cr, ADMIN_USER_ID, 'test_sequence_type_6', {})
assert all(str(x) == f() for x in xrange(1,1000))
assert all(str(x) == f() for x in xrange(1,10))
cr.commit()
cr.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment