summaryrefslogtreecommitdiffstats
path: root/tests/users
diff options
context:
space:
mode:
authorAndrew Godwin2022-12-10 13:24:49 -0700
committerAndrew Godwin2022-12-10 13:24:49 -0700
commit602e5a378057f3cd5ca355fd3ed2a17fcc147c72 (patch)
treeeaa950ac15e45a4a900ce7fa0fed400fadf50a17 /tests/users
parentfd5250059118a3f6932b4d39a085164b10577706 (diff)
downloadtakahe-602e5a378057f3cd5ca355fd3ed2a17fcc147c72.tar.gz
takahe-602e5a378057f3cd5ca355fd3ed2a17fcc147c72.tar.bz2
takahe-602e5a378057f3cd5ca355fd3ed2a17fcc147c72.zip
Add system actor and shared inbox
Diffstat (limited to 'tests/users')
-rw-r--r--tests/users/views/test_activitypub.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/users/views/test_activitypub.py b/tests/users/views/test_activitypub.py
index c6e7faf..c15e232 100644
--- a/tests/users/views/test_activitypub.py
+++ b/tests/users/views/test_activitypub.py
@@ -14,6 +14,7 @@ def test_webfinger_actor(client, identity):
# Fetch their actor
data = client.get("/@test@example.com/", HTTP_ACCEPT="application/ld+json").json()
assert data["id"] == "https://example.com/@test@example.com/"
+ assert data["endpoints"]["sharedInbox"] == "https://example.com/inbox/"
@pytest.mark.django_db
@@ -31,6 +32,7 @@ def test_webfinger_system_actor(client):
data = client.get("/actor/", HTTP_ACCEPT="application/ld+json").json()
assert data["id"] == "https://example.com/actor/"
assert data["inbox"] == "https://example.com/actor/inbox/"
+ assert data["endpoints"]["sharedInbox"] == "https://example.com/inbox/"
@pytest.mark.django_db