Skip to content

Commit 26b302b

Browse files
author
Wu Yun
committed
test: sms limit error
1 parent e73f0d5 commit 26b302b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/test_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ def test_request_sms_code(): # type: () -> None
579579
pass
580580
elif e.code == 601 or e.error.startswith("SMS request too fast"): # send sms too frequently
581581
pass
582-
elif e.error.startswith("SMS sending exceeds limit"):
582+
elif "SMS sending exceeds limit" in e.error:
583583
pass
584584
elif "send too frequently" in e.error:
585585
pass

tests/test_user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def test_request_change_phone_number(): # type: () -> None
286286
except LeanCloudError as e:
287287
if e.code in (119, 213, 601, 605):
288288
pass
289-
elif e.error.startswith("SMS sending exceeds limit"):
289+
elif "SMS sending exceeds limit" in e.error:
290290
pass
291291
elif "send too frequently" in e.error:
292292
pass

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy