Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The Flask url_for function requires an application context to be present when generating a url_for. This is obviuosly not the case when calling it from a test, so we need to wrap the function on a test_request_context: with app.flask_app.test_request_context(): url_for(...)
- Loading branch information
Showing
12 changed files
with
1,079 additions
and
557 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.