File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ six = ">=1.11.0"
2121qiniu = " >=7.1.4,<7.2.4"
2222"urllib3" = " >=1.24.3,<=1.25.3"
2323requests = " >=2.20.0,<=2.22.0"
24- werkzeug = " * "
24+ Werkzeug = " >=0.11.11,<1.0.0 "
2525gevent = " >=1.0.2,<2.0.0"
2626typing = { version = " *" , markers = " python_version < '3.5.0'" }
2727pyopenssl = { version = " *" , markers = " python_version < '2.7.9'" }
Original file line number Diff line number Diff line change @@ -25,6 +25,27 @@ cd docs
2525make html
2626```
2727
28+ ## Run Tests
29+
30+ Configure the following environment variables:
31+
32+ - ` APP_ID `
33+ - ` APP_KEY `
34+ - ` MASTER_KEY `
35+ - ` USE_REGION `
36+
37+ Install dependencies:
38+
39+ ``` sh
40+ pip install -e .' [test]'
41+ ```
42+
43+ Run tests:
44+
45+ ``` sh
46+ nosetests
47+ ```
48+
2849## Release a New Version
2950
30511 . Edit ` changelog ` and ` setup.py ` (` version ` ).
Original file line number Diff line number Diff line change 1212 'qiniu>=7.1.4,<7.2.4' ,
1313 'requests>=2.20.0,<=2.22.0' ,
1414 'urllib3>=1.24.3,<=1.25.3' ,
15- 'werkzeug ' ,
15+ 'Werkzeug>=0.11.11,<1.0.0 ' ,
1616 'gevent>=1.0.2,<2.0.0'
1717]
1818
Original file line number Diff line number Diff 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 ())
You can’t perform that action at this time.
0 commit comments