From 29194e3f3d60d7107a4d4250d1c75fd74f92584d Mon Sep 17 00:00:00 2001 From: Tessa Walsh Date: Thu, 11 Apr 2024 12:36:06 -0400 Subject: [PATCH] Revert to json kwarg for test_sign_invalid_token --- tests/test_authsign.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_authsign.py b/tests/test_authsign.py index 416ff4d..be26757 100644 --- a/tests/test_authsign.py +++ b/tests/test_authsign.py @@ -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( @@ -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