Skip to content

Commit

Permalink
test: sms limit error
Browse files Browse the repository at this point in the history
  • Loading branch information
Wu Yun committed Apr 2, 2024
1 parent e73f0d5 commit 26b302b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ def test_request_sms_code(): # type: () -> None
pass
elif e.code == 601 or e.error.startswith("SMS request too fast"): # send sms too frequently
pass
elif e.error.startswith("SMS sending exceeds limit"):
elif "SMS sending exceeds limit" in e.error:
pass
elif "send too frequently" in e.error:
pass
Expand Down
2 changes: 1 addition & 1 deletion tests/test_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def test_request_change_phone_number(): # type: () -> None
except LeanCloudError as e:
if e.code in (119, 213, 601, 605):
pass
elif e.error.startswith("SMS sending exceeds limit"):
elif "SMS sending exceeds limit" in e.error:
pass
elif "send too frequently" in e.error:
pass
Expand Down

0 comments on commit 26b302b

Please sign in to comment.