Skip to content

Commit 0e1487a

Browse files
committed
test: update LeanCloud api error msg
see also leancloud/uluru-platform#6091
1 parent 1236c40 commit 0e1487a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_user.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def test_request_password_reset(): # type: () -> None
263263
User.request_password_reset('wow@leancloud.rocks')
264264
except LeanCloudError as e:
265265
assert u'请不要往同一个邮件地址发送太多邮件。' in e.error \
266-
or 'Too many emails sent to the same email address' in str(e)
266+
or 'Too many emails' in str(e)
267267

268268

269269
@with_setup(get_setup_func())
@@ -273,8 +273,8 @@ def test_request_email_verify(): # type: () -> None
273273
except LeanCloudError as e:
274274
assert '邮件验证功能' in str(e) \
275275
or '请不要往同一个邮件地址发送太多邮件' in str(e) \
276-
or 'Too many emails sent to the same email address' in str(e)\
277-
or 'Please enable verifying user email option in application settings' in str(e)
276+
or 'Too many emails' in str(e)\
277+
or 'Please enable the option to verify user emails in application settings.' in str(e)
278278

279279

280280
@with_setup(get_setup_func())

0 commit comments

Comments
 (0)