fix(test): two_factor
This commit is contained in:
parent
63e14f6ee2
commit
74e2e05162
2 changed files with 3 additions and 3 deletions
|
|
@ -157,8 +157,8 @@ def create_http_request():
|
|||
'''Get http request object.'''
|
||||
set_request(method='POST', path='login')
|
||||
enable_2fa()
|
||||
frappe.form_dict['usr'] = 'test@erpnext.com'
|
||||
frappe.form_dict['pwd'] = 'test'
|
||||
frappe.form_dict['usr'] = 'test@example.com'
|
||||
frappe.form_dict['pwd'] = 'Eastern_43A1W'
|
||||
frappe.local.form_dict['cmd'] = 'login'
|
||||
http_requests = HTTPRequest()
|
||||
return http_requests
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ class RedisWrapper(redis.Redis):
|
|||
|
||||
try:
|
||||
if expires_in_sec:
|
||||
self.setex(key, pickle.dumps(val), expires_in_sec)
|
||||
self.setex(key, expires_in_sec, pickle.dumps(val))
|
||||
else:
|
||||
self.set(key, pickle.dumps(val))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue