[ADD] add yml test case file of add user using configuration wizard.
bzr revid: ysa@tinyerp.com-20110518102547-pyxw8gtd8oh5nemb
This commit is contained in:
parent
c81ae42689
commit
8175ad95b4
|
@ -94,6 +94,7 @@
|
|||
'test/bug_lp541545.xml',
|
||||
'test/test_osv_expression.yml',
|
||||
'test/test_ir_rule.yml', # <-- These tests modify/add/delete ir_rules.
|
||||
'test/test_config_users.yml'
|
||||
],
|
||||
'installable': True,
|
||||
'active': True,
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
-
|
||||
I Create "test" user using configuration wizard.
|
||||
-
|
||||
!python {model: res.config.users}: |
|
||||
default_value = self.default_get(cr, uid, ['name','login','password','active','context_lang','active','menu_id','company_id','address_id','menu_tips'])
|
||||
print "default_value::",default_value
|
||||
default_value.update({
|
||||
'name' : 'test1',
|
||||
'login' : 'test1',
|
||||
'password' : 'test',
|
||||
'email' : 'test@company.com',
|
||||
})
|
||||
wizard_id = self.create(cr, uid, default_value)
|
||||
self.action_add(cr, uid, [wizard_id], context)
|
Loading…
Reference in New Issue