Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Models to JWTRoutes class & init_app method #119 #122

Merged
merged 8 commits into from Dec 10, 2019

Conversation

joegasewicz
Copy link
Owner

@joegasewicz joegasewicz commented Dec 9, 2019

Adds to the public api the model declarations. We will continue to provide the option to declare models on Flask's config.

@kousikmitra @neilong31 would be grateful for a review, thank you

@codecov
Copy link

codecov bot commented Dec 9, 2019

Codecov Report

Merging #122 into master will increase coverage by 0.47%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #122      +/-   ##
==========================================
+ Coverage   88.01%   88.48%   +0.47%     
==========================================
  Files           6        7       +1     
  Lines         267      278      +11     
  Branches       31       31              
==========================================
+ Hits          235      246      +11     
  Misses         25       25              
  Partials        7        7
Impacted Files Coverage Δ
flask_jwt_router/_jwt_routes.py 100% <ø> (ø) ⬆️
flask_jwt_router/_extensions.py 95% <100%> (+1.25%) ⬆️
flask_jwt_router/_authentication.py 91.17% <100%> (+0.26%) ⬆️
flask_jwt_router/_jwt_router.py 90.32% <100%> (+0.84%) ⬆️
flask_jwt_router/__init__.py 100% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f7c6263...a5cfed5. Read the comment docs.

@@ -8,6 +8,7 @@ pytest = "*"
twine = "*"
pyjwt = "*"
Flask-SQLAlchemy = "*"
Sphinx = "*"
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just for running the docs locally, this actually gets run automatically when the code is merged (we don't source control the build dir)

@@ -1,29 +1,32 @@
from flask_jwt_router._jwt_routes import JwtRoutes
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improved the tests for extensions .. should only be testing the actual extensions class...

@joegasewicz
Copy link
Owner Author

thanks you @kousikmitra

@joegasewicz joegasewicz merged commit 83a5b94 into master Dec 10, 2019
@joegasewicz joegasewicz deleted the models_to_init branch December 10, 2019 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants