generated from rayluo/python-project-template
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Logout regression in 0.9.0 for Flask
- Loading branch information
Showing
4 changed files
with
36 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from flask import Flask | ||
from identity.flask import Auth | ||
|
||
|
||
def test_logout(): | ||
app = Flask(__name__) | ||
app.config["SESSION_TYPE"] = "filesystem" # Required for Flask-session, | ||
# see also https://stackoverflow.com/questions/26080872 | ||
auth = Auth(app, client_id="fake") | ||
with app.test_request_context("/", method="GET"): | ||
assert auth._request.host_url in auth.logout().get_data(as_text=True), ( | ||
"The host_url should be in the logout URL. There was a bug in 0.9.0.") | ||
|
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