Skip to content

Commit 538a497

Browse files
author
Joe Gasewicz
authored
Testing mixin for Google class (#222)
Remove testing logic from library's Routing & Entity classes Fixes #219 #220
1 parent 6495ccb commit 538a497

File tree

2 files changed

+35
-31
lines changed

2 files changed

+35
-31
lines changed

CHANGELOG.md

+34-30
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,63 @@
11
# Changelog
22

33
### Changed
4-
**Releases 0.1.9rc1** - 2021-03-16
5-
- Allow for multiple tablenames for Google OAuth [Issue #206](https://github.com/joegasewicz/flask-jwt-router/issues/206)
4+
5+
**Releases 0.1.9** - 2021-03-16
6+
- 🎁 Allow for multiple tablenames for Google OAuth [Issue #206](https://github.com/joegasewicz/flask-jwt-router/issues/206)
67

78
**Releases 0.1.8** - 2021-03-16
8-
- Outdated docstring - nice easy fix for a beginner developer! [Issue #192](https://github.com/joegasewicz/flask-jwt-router/issues/192)
9-
- Bump cryptography from 3.3.1 to 3.3.2 #197
10-
- Multiple redirect URI's for Google OAuth #203 [Issue #203](https://github.com/joegasewicz/flask-jwt-router/issues/203)
9+
- 📝 Outdated docstring - nice easy fix for a beginner developer! [Issue #192](https://github.com/joegasewicz/flask-jwt-router/issues/192)
10+
- 🎁 Bump cryptography from 3.3.1 to 3.3.2 #197
11+
- 🎁 Multiple redirect URI's for Google OAuth #203 [Issue #203](https://github.com/joegasewicz/flask-jwt-router/issues/203)
1112

1213
**Releases 0.1.7** - 2021-01-27
13-
- Test utils for OAuth users should handle multiple user states. [Issue #188](https://github.com/joegasewicz/flask-jwt-router/pull/188)
14+
- 🎁 Test utils for OAuth users should handle multiple user states. [Issue #188](https://github.com/joegasewicz/flask-jwt-router/pull/188)
1415

1516
**Releases 0.1.6** - 2021-01-27
16-
- Google test utility method can be scoped between tests. [Issue #185](https://github.com/joegasewicz/flask-jwt-router/issues/185)
17+
- 🎁 Google test utility method can be scoped between tests. [Issue #185](https://github.com/joegasewicz/flask-jwt-router/issues/185)
1718

1819
**Releases 0.1.5** - 2021-01-26
19-
- Added extra test in [_routing.py line 174](https://github.com/joegasewicz/flask-jwt-router/blob/6ee5bcfb772b6cb66a5c621cf466014b94eaf635/flask_jwt_router/_routing.py#L174) for better check for X-Auth-Token headers.
20-
- Provide a utility method for testing & mocking OAuth headers. [Issue #183](https://github.com/joegasewicz/flask-jwt-router/issues/183)
20+
- 🎁 Added extra test in [_routing.py line 174](https://github.com/joegasewicz/flask-jwt-router/blob/6ee5bcfb772b6cb66a5c621cf466014b94eaf635/flask_jwt_router/_routing.py#L174) for better check for X-Auth-Token headers.
21+
- 🎁 Provide a utility method for testing & mocking OAuth headers. [Issue #183](https://github.com/joegasewicz/flask-jwt-router/issues/183)
2122

2223
**Releases 0.0.29 to 0.1.4** -
2324

2425
- README.md references `user` but example table is `users`. [Issue #154](https://github.com/joegasewicz/flask-jwt-router/issues/154)
25-
- Add OAuth 2.0 & compatibility with react-google-oauth2 npm pkg. [Issue #158](https://github.com/joegasewicz/flask-jwt-router/issues/158)
26-
- Fix docs. [Issue #162](https://github.com/joegasewicz/flask-jwt-router/issues/162)
27-
- Fix url is mutated. [Issue #169](https://github.com/joegasewicz/flask-jwt-router/issues/169)
28-
- Entity key state gets stale between requests. [Issue #171](https://github.com/joegasewicz/flask-jwt-router/issues/171)
29-
- Table name form oauth request is stale. [Issue #173](https://github.com/joegasewicz/flask-jwt-router/issues/173)
30-
- Clean up entity state before auth routing . [Issue #175](https://github.com/joegasewicz/flask-jwt-router/issues/175)
31-
- Return 401 status is oauth returns none. [Issue #177](https://github.com/joegasewicz/flask-jwt-router/issues/177)
32-
- PyJWT 2.0 causes Breaking change. [Issue #179](https://github.com/joegasewicz/flask-jwt-router/issues/179)
26+
- 🎁 Add OAuth 2.0 & compatibility with react-google-oauth2 npm pkg. [Issue #158](https://github.com/joegasewicz/flask-jwt-router/issues/158)
27+
- 📝 Fix docs. [Issue #162](https://github.com/joegasewicz/flask-jwt-router/issues/162)
28+
- 🪲 Fix url is mutated. [Issue #169](https://github.com/joegasewicz/flask-jwt-router/issues/169)
29+
- 🪲 Entity key state gets stale between requests. [Issue #171](https://github.com/joegasewicz/flask-jwt-router/issues/171)
30+
- 🪲 Table name form oauth request is stale. [Issue #173](https://github.com/joegasewicz/flask-jwt-router/issues/173)
31+
- 🪲 Clean up entity state before auth routing . [Issue #175](https://github.com/joegasewicz/flask-jwt-router/issues/175)
32+
- 🪲 Return 401 status is oauth returns none. [Issue #177](https://github.com/joegasewicz/flask-jwt-router/issues/177)
33+
- 🪲 PyJWT 2.0 causes Breaking change. [Issue #179](https://github.com/joegasewicz/flask-jwt-router/issues/179)
3334

3435
**Release 0.0.28** -
3536

36-
- Created custom error for `update_token` method called on non existent token [Issue #151](https://github.com/joegasewicz/flask-jwt-router/issues/151)
37-
- Updated `Authenticate`'s `update_token` method's doc string with entity_id kwarg. [Issue #150](https://github.com/joegasewicz/flask-jwt-router/issues/150)
38-
- README.md references `user` but example table is `users` [Issue #154](https://github.com/joegasewicz/flask-jwt-router/issues/154)
37+
- 🎁 Created custom error for `update_token` method called on non existent token [Issue #151](https://github.com/joegasewicz/flask-jwt-router/issues/151)
38+
- 📝 Updated `Authenticate`'s `update_token` method's doc string with entity_id kwarg. [Issue #150](https://github.com/joegasewicz/flask-jwt-router/issues/150)
39+
- 📝 README.md references `user` but example table is `users` [Issue #154](https://github.com/joegasewicz/flask-jwt-router/issues/154)
3940

4041
**Release 0.0.27** - 2020-09-14
4142

42-
- Secret Key now must be set [Issue #137](https://github.com/joegasewicz/flask-jwt-router/issues/137)
43-
- Fixes ModuleNotFoundError: No module named 'dateutil' [Issue #138](https://github.com/joegasewicz/flask-jwt-router/issues/138)
44-
- Removes strategy design pattern from project [Issue #141](https://github.com/joegasewicz/flask-jwt-router/issues/141)
45-
- Renamed extensions to Config [Issue #143](https://github.com/joegasewicz/flask-jwt-router/issues/143)
46-
- Added token expire duration option [Issue #44](https://github.com/joegasewicz/flask-jwt-router/issues/44)
43+
- 🪲 Secret Key now must be set [Issue #137](https://github.com/joegasewicz/flask-jwt-router/issues/137)
44+
- 🪲 Fixes ModuleNotFoundError: No module named 'dateutil' [Issue #138](https://github.com/joegasewicz/flask-jwt-router/issues/138)
45+
- 🎁 Removes strategy design pattern from project [Issue #141](https://github.com/joegasewicz/flask-jwt-router/issues/141)
46+
- 🎁 Renamed extensions to Config [Issue #143](https://github.com/joegasewicz/flask-jwt-router/issues/143)
47+
- 🎁 Added token expire duration option [Issue #44](https://github.com/joegasewicz/flask-jwt-router/issues/44)
4748

4849
**Release 0.0.26** - 2019-12-11
4950

50-
- Preflight OPTIONS bug fix [Issue #125](https://github.com/joegasewicz/Flask-JWT-Router/issues/125)
51+
- 🪲 Preflight OPTIONS bug fix [Issue #125](https://github.com/joegasewicz/Flask-JWT-Router/issues/125)
5152

5253
**Release 0.0.25** - 2019-12-10
5354

54-
- Replaced the the `entity_type` kwarg to `table_name` in the public method `register_entity` [Issue #111](https://github.com/joegasewicz/Flask-JWT-Router/issues/111)
55-
- Renamed the `update_entity` public method to be called `update_token` [Issue #114](https://github.com/joegasewicz/Flask-JWT-Router/issues/114)
56-
- Renamed the `register_entity` public method to be called `create_token` [Issue #113](https://github.com/joegasewicz/Flask-JWT-Router/issues/113)
57-
- Add Models to JWTRoutes class & init_app method [Issue #119](https://github.com/joegasewicz/Flask-JWT-Router/issues/119)
55+
- 🎁 Replaced the the `entity_type` kwarg to `table_name` in the public method `register_entity` [Issue #111](https://github.com/joegasewicz/Flask-JWT-Router/issues/111)
56+
- 🎁 Renamed the `update_entity` public method to be called `update_token` [Issue #114](https://github.com/joegasewicz/Flask-JWT-Router/issues/114)
57+
- 🎁 Renamed the `register_entity` public method to be called `create_token` [Issue #113](https://github.com/joegasewicz/Flask-JWT-Router/issues/113)
58+
- 🎁 Add Models to JWTRoutes class & init_app method [Issue #119](https://github.com/joegasewicz/Flask-JWT-Router/issues/119)
5859

5960
## Unreleased
61+
**Releases 0.2.0** - 2021-07-21
62+
- 🎁 Remove testing logic from library's `Routing` & `Entity` classes [Issue #219](https://github.com/joegasewicz/flask-jwt-router/issues/219)
63+
- 🎁 Testing mixin for Google class [Issue #220](https://github.com/joegasewicz/flask-jwt-router/issues/220)

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name='flask-jwt-router',
8-
version='0.1.9',
8+
version='0.2.0rc1',
99
description='Flask JWT Router is a Python library that adds authorised routes to a Flask app',
1010
packages=["flask_jwt_router", "flask_jwt_router.oauth2"],
1111
classifiers=[

0 commit comments

Comments
 (0)