-
Notifications
You must be signed in to change notification settings - Fork 912
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
test_config not used #37
Comments
Thank you. Please submit a PR. |
Great, thank you for your quick response. |
Not yet merged |
Thanks 🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I'm student of the Full Stack Web Developer nanodegree and I'm wondering if I can open a PR to solve the following issue.
The
setup_db
is called ontest_flaskr.py
after it was called by thecreate_app()
.This is not allowed on new Flask versions.
Though it worked I think it was always cumbursome.
We should use the
test_config
argument fromcreate_app()
to pass the db uri as arg, and oncreate_app()
parse the test config and pass the db path tosetup_db
if the test config is not none.This is the
create_app(test_config=None)
signature and thesetup_db(app, database_path=database_path)
goes like this.Would be ok if I propose this change on a PR?
Or would you prefer to apply this change for the future students?
The text was updated successfully, but these errors were encountered: