Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ jobs:
- name: Test with inv
run: inv cover qa
- name: Coveralls
run: |
pip install coveralls
coveralls --rcfile=coverage.rc
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
bench:
needs: test
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion flask_restx/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

from jsonschema import RefResolver

from werkzeug import cached_property
from werkzeug.utils import cached_property
from werkzeug.datastructures import Headers
from werkzeug.exceptions import HTTPException, MethodNotAllowed, NotFound, NotAcceptable, InternalServerError
from werkzeug.wrappers import BaseResponse
Expand Down
2 changes: 1 addition & 1 deletion requirements/test.pip
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pytest==4.6.5; python_version < '3.5'
pytest==5.0.1; python_version >= '3.5'
pytest-benchmark==3.2.2
pytest-cov==2.7.1
pytest-flask==0.15.0
pytest-flask==0.15.1
pytest-mock==1.10.4
pytest-profiling==1.7.0
pytest-sugar==0.9.2
Expand Down
2 changes: 1 addition & 1 deletion tests/test_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'

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