-
Notifications
You must be signed in to change notification settings - Fork 338
Remove deprecated werkzeug import #35
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
aniso8601>=0.82 | ||
jsonschema | ||
Flask>=0.8 | ||
werkzeug<=0.16.1 | ||
werkzeug | ||
pytz | ||
six>=1.3.0 | ||
enum34; python_version < '3.4' |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -413,7 +413,7 @@ def test_handle_non_api_error(self, app, client): | |
|
||
response = client.get("/foo") | ||
assert response.status_code == 404 | ||
assert response.headers['Content-Type'] == 'text/html' | ||
assert response.headers['Content-Type'] == 'text/html; charset=utf-8' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why the addition of charset here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Introduced by werkzeug 1.0 as well. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please explain this in the commit message @plowman 😄 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. haha, I disagree about how useful this information will be for future commit archaeologists but sure, commit message: updated. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change breaks the tests There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, it's more complicated than that. Only one test remains broken: the one running python 3.4 The proper fix is to remove python 3.4 from the test suite and completely drop support for python 3.4 (which is EOL for almost a year). |
||
|
||
def test_non_api_error_404_catchall(self, app, client): | ||
api = restx.Api(app, catch_all_404s=True) | ||
|
Uh oh!
There was an error while loading. Please reload this page.