Skip to content

Commit 194b6bd

Browse files
authored
Merge pull request #444 from weakish/werkzeug
fix: require Werkzeug <1.0.0 related forum post: 22216, 22168, 22182 related ticket: 23058
2 parents 290d4dd + 896d096 commit 194b6bd

4 files changed

Lines changed: 26 additions & 5 deletions

File tree

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ six = ">=1.11.0"
2121
qiniu = ">=7.1.4,<7.2.4"
2222
"urllib3" = ">=1.24.3,<=1.25.3"
2323
requests = ">=2.20.0,<=2.22.0"
24-
werkzeug = "*"
24+
Werkzeug = ">=0.11.11,<1.0.0"
2525
gevent = ">=1.0.2,<2.0.0"
2626
typing = { version = "*", markers = "python_version < '3.5.0'" }
2727
pyopenssl = { version = "*", markers = "python_version < '2.7.9'" }

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,27 @@ cd docs
2525
make 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

3051
1. Edit `changelog` and `setup.py` (`version`).

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
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

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)