Skip to content

Commit

Permalink
extra verifications tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeny_Gavrilin committed Oct 31, 2021
1 parent 67958c0 commit 32de686
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_async_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def app():
app.config.SANIC_JWT_AUTHORIZATION_HEADER_PREFIX = "JWT"
app.config.SANIC_JWT_EXPIRATION_DELTA = 360000
app.config.SANIC_JWT_USER_ID = "username"

app.config.FALLBACK_ERROR_FORMAT = "json"
sanicjwt = initialize(app, authentication_class=CustomAuth)
app.blueprint(bp)

Expand All @@ -64,7 +64,7 @@ def test_async_options(app):
sanic_app, sanicjwt = app
_, response = sanic_app.test_client.get("/test")
assert response.status == 401
assert "Authorization header not present." in response.json.get("reasons")
assert "Authorization header not present." in response.json.get("message")

_, response = sanic_app.test_client.post(
"/auth", json={"username": "Rich", "password": "not secure"}
Expand Down

0 comments on commit 32de686

Please sign in to comment.