From ddb797b3a7c45109340077b6b53d31049e31f477 Mon Sep 17 00:00:00 2001 From: Marnanel Thurman Date: Mon, 15 Jun 2020 22:16:07 +0100 Subject: [PATCH] bowler's test_send_to_inbox skipped in its entirety; we should support this, but not in v1.0. MIME type constant for the above fixed, for completeness. --- kepi/bowler_pub/tests/test_send_to_inbox.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/kepi/bowler_pub/tests/test_send_to_inbox.py b/kepi/bowler_pub/tests/test_send_to_inbox.py index 043254e..73b55fa 100644 --- a/kepi/bowler_pub/tests/test_send_to_inbox.py +++ b/kepi/bowler_pub/tests/test_send_to_inbox.py @@ -35,11 +35,17 @@ OBJECT_FORM = { "cc": "https://e14n.com/evan" } -MIME_TYPE = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' +MIME_TYPE = 'application/activity+json' INVALID_UTF8 = b"\xa0\xa1" logger = logging.getLogger(name='kepi') +@skip("""Sending to inbox is not yet implemented, not least +because there don't seem to be any clients to test it with. +The ActivityPub spec seems straightforward, though, so we +should implement it at some point. The code in this test +was written for the old bowler-heavy kepi design, and +will need a lot of rewriting.""") class TestInbox2(TestCase): def setUp(self):