From 4d6f14e7d106dadeb354081a32dfa8b1f40371e0 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 30 Nov 2026 11:38:15 +0100 Subject: fix(todo): open tasks at the configured URL, animate done and snooze Vikunja's frontend_url said port 80, so a tap opened the wrong page; the frontend lives at the API's address, so open uses [todo] url. A hold now turns the chip green with a ticked box and shrinks it away, a snooze carries it off to the right; the row is redrawn only after the animation, so it is not cut short. Co-Authored-By: Claude Opus 5.5 --- tests/test_todo.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/test_todo.py b/tests/test_todo.py index 9307012..8834f7e 100644 --- a/tests/test_todo.py +++ b/tests/test_todo.py @@ -58,8 +58,6 @@ class Fake: def __call__(self, method, url, token, data=None): self.calls.append((method, url, data, token)) - if url.endswith("/api/v1/info"): - return {"frontend_url": "http://vikunja.example.org/"} if method == "GET" and "/api/v2/tasks?" in url: return {"items": self.tasks} if method == "GET": @@ -108,7 +106,7 @@ class Module(unittest.TestCase): def test_open_runs_xdg_open_on_the_task(self): self.m.actions["open"]({"id": 7}) - self.assertEqual(self.opened, [["xdg-open", "http://vikunja.example.org/tasks/7"]]) + self.assertEqual(self.opened, [["xdg-open", "http://vikunja.example.org:3456/tasks/7"]]) def test_done_patches_only_done(self): self.m.actions["done"]({"id": 7}) -- cgit v1.2.3