Skip to content

Commit

Permalink
Revert to json kwarg for test_sign_invalid_token
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Apr 11, 2024
1 parent a006c03 commit 29194e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_authsign.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def test_sign_invalid_token(domain, config_file):
req = {"hash": "some_data", "created": now}

with TestClient(app) as client:
resp = client.request("POST", "/sign", data=req)
resp = client.request("POST", "/sign", json=req)
assert resp.status_code == 403

resp = client.request(
Expand All @@ -143,7 +143,7 @@ def test_sign_invalid_token(domain, config_file):
headers={
"Authorization": "bearer " + base64.b64encode(b"abc").decode("ascii")
},
data=req,
json=req,
)
assert resp.status_code == 403

Expand Down

0 comments on commit 29194e3

Please sign in to comment.