From de769a7b43f69509b277d7cc8df008b40be0cd54 Mon Sep 17 00:00:00 2001 From: Henri Dickson <90480431+alphatownsman@users.noreply.github.com> Date: Mon, 19 Feb 2024 13:22:11 -0500 Subject: [PATCH] fix test --- tests/api/test_search.py | 1 - tests/core/test_signatures.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/api/test_search.py b/tests/api/test_search.py index 389535f1c..36a5c0a92 100644 --- a/tests/api/test_search.py +++ b/tests/api/test_search.py @@ -86,7 +86,6 @@ def test_search_not_found(httpx_mock: HTTPXMock, api_client): @pytest.mark.parametrize( "content_type", [ - "application/json", "application/ld+json", "application/activity+json", ], diff --git a/tests/core/test_signatures.py b/tests/core/test_signatures.py index eec202320..6719b1eb6 100644 --- a/tests/core/test_signatures.py +++ b/tests/core/test_signatures.py @@ -107,7 +107,7 @@ def test_verify_http(keypair): fake_request = RequestFactory().post( path="/test-actor", data=b'{"id": "https://example.com/test-create", "type": "Create", "actor": "https://example.com/test-actor", "object": {"id": "https://example.com/test-object", "type": "Note"}}', - content_type="application/json", + content_type="application/activity+json", HTTP_HOST="example.com", HTTP_DATE="Sat, 12 Nov 2022 21:57:18 GMT", HTTP_SIGNATURE='keyId="https://example.com/test-actor#test-key",headers="(request-target) host date digest content-type",signature="IRduYoDJIh90mprjUgOIdxY1iaBWHs5ou9vsDlcmSekg6DXMZTiXjmZxbNIrnpEbNFu3wTcqz1nv9H97Gp7orbYMuHm6j2ecxsvzSr37T9jxBbt3Ov3xSfuYWwhv6PuTWNxHtUQWNuAIc3wHDAQt8Flnak/uHe7swoAq4uHq2kt18iMW6CEV9XA5ESFho2HSUgRaifoNxJlIWbHYPJiP0t9aktgGBkpQoZ8ulOj3Ew4RwC1lwk9kzWiLIjU4tSAie8RbIy2g0aUvA1tQh9Uge1by3o7+349SL5iooj+B6WSCEvvjEl52wo3xoEQmv0ptYuSPLUgB9tP8q7DoHEc8Dw==",algorithm="rsa-sha256"', @@ -125,7 +125,7 @@ def test_verify_http_bad_signature(keypair): fake_request = RequestFactory().post( path="/test-actor", data=b'{"id": "https://example.com/test-create", "type": "Create", "actor": "https://example.com/test-actor", "object": {"id": "https://example.com/test-object", "type": "Note"}}', - content_type="application/json", + content_type="application/activity+json", HTTP_HOST="example.com", HTTP_DATE="Sat, 12 Nov 2022 21:57:18 GMT", HTTP_SIGNATURE='keyId="https://example.com/test-actor#test-key",headers="(request-target) host date digest content-type",signature="IRduYoDJIh90mprjUgOIdxY1iaBWHs5ou9vsDlcmSekg6DXMZTiXjmZxbNIrnpEbNFu3wTcqz1nv9H97Gp7orbYMuHm6j2ecxsvzSr37T9jxBbt3Ov3xSfuYWwhv6PuTWNxHtUQWNuAIc3wHDAQt8Flnak/uHe7swoAq4uHq2kt18iMW6CEV9XA5ESFho2HSUgRaifoNxJlIWbHYPJiP0t9aktgGBkpQoZ8ulOj3Ew4RwC1lwk9kzWiLIjU4tSAie8RbIy2g0aUvA1tQh9Uge1by3o7+349SL5iooj+B6WSCEvvjEl52wo3xoEQmv0ptYuSPLUgB9tP8q7DoHEc8Dw=="',