From bafe42275e65b98951dd3335342e38d7bf1b1db5 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Sun, 1 Aug 2021 14:27:21 +0000 Subject: Utilise jinja inheritance to streamline in/outbox Using jinja's templating extensions, we can recreate the activitypub inheritance hierarchy without using clunky python OO. Extending from multiple template files in sequence might cause unnecesary IO to slow response times; if this ever becomes an issue, it should be possible to pre-process some of the templating since a lot of it will be based on constant expressions (such as @context and type). I think some formatting fixes leaked into this commit; oops! I'm leaving this note here in the hopes that if I ever want to clean this up, I can locate this commit easier. --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/conftest.py') diff --git a/tests/conftest.py b/tests/conftest.py index 1e41314..459e3cb 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -46,7 +46,7 @@ class AuthActions(object): def login(self, username="test", password="test"): return self._client.post( "/auth/login", - data=json.dumps({"username": username, "password": password,}), + data=json.dumps({"username": username, "password": password}), headers={"content-type": "application/json"}, ) -- cgit v1.2.1