summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTom Harley2021-07-30 18:35:08 +0000
committerTom Harley2021-07-30 18:35:08 +0000
commitc77d6a4d4a1d628788be73491aa7fa4e4fdcff05 (patch)
tree90f92c373b085818243835c323fa6e1884854ce9 /tests
parentAdd more inbox/outbox tests (diff)
downloadswap-c77d6a4d4a1d628788be73491aa7fa4e4fdcff05.tar.gz
swap-c77d6a4d4a1d628788be73491aa7fa4e4fdcff05.zip

Add templates

Rather than using jsonify on a dict, the system now uses render_template on json documents. This gives the ability to extend previous files (which might be useful for activitypub features), and also enables using different templates for different filetypes.

Supplied are templates for accessing inboxes and outboxes in JSON-LD and HTML.

The “items” field in get_user_inbox_page.json and get_user_outbox_page.json might be currently borked.

Diffstat (limited to 'tests')
-rw-r--r--tests/test_users.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_users.py b/tests/test_users.py
index 8bfd058..e75492a 100644
--- a/tests/test_users.py
+++ b/tests/test_users.py
@@ -75,9 +75,7 @@ def test_get_user_inbox_page_after_logout(app, client, auth):
def test_get_user_inbox_page_latest(app, client, auth):
with app.app_context():
- target_url = url_for(
- "users.get_user_inbox_page", username="test", page_index="latest"
- )
+ target_url = url_for("users.get_user_inbox_page", username="test")
auth.login()
response = client.get(target_url)
assert response.status_code == 200