Skip to content

Commit d723df6

Browse files
committed
Fix content type assertion
As of werkzeug 1.0 the content-type changed to include "charset=utf-8".
1 parent d0a7178 commit d723df6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ def test_handle_non_api_error(self, app, client):
413413

414414
response = client.get("/foo")
415415
assert response.status_code == 404
416-
assert response.headers['Content-Type'] == 'text/html'
416+
assert response.headers['Content-Type'] == 'text/html; charset=utf-8'
417417

418418
def test_non_api_error_404_catchall(self, app, client):
419419
api = restx.Api(app, catch_all_404s=True)

0 commit comments

Comments
 (0)