aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_todo.py
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-30 11:38:15 +0100
committerDanilo M. <danix@danix.xyz>2026-11-30 11:38:15 +0100
commit4d6f14e7d106dadeb354081a32dfa8b1f40371e0 (patch)
tree0c2c8c9aee5ccc3085b125462bb17684f472d309 /tests/test_todo.py
parent30fed7fc778560e759ae5602901d898af80e0a28 (diff)
downloaddeck-it-4d6f14e7d106dadeb354081a32dfa8b1f40371e0.tar.gz
deck-it-4d6f14e7d106dadeb354081a32dfa8b1f40371e0.zip
fix(todo): open tasks at the configured URL, animate done and snoozeHEADmaster
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 <noreply@anthropic.com>
Diffstat (limited to 'tests/test_todo.py')
-rw-r--r--tests/test_todo.py4
1 files changed, 1 insertions, 3 deletions
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})