From c77d6a4d4a1d628788be73491aa7fa4e4fdcff05 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Fri, 30 Jul 2021 18:35:08 +0000 Subject: 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. --- tests/test_users.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests/test_users.py') 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 -- cgit v1.2.1