aboutsummaryrefslogtreecommitdiffstats
path: root/test_cal_notif.py
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-27 20:05:55 +0200
committerDanilo M. <danix@danix.xyz>2026-09-27 20:05:55 +0200
commitb928c3e5bdb01536b60d43f1bc3dd5a9ddb41057 (patch)
tree2b8b6c0fd0455f6c9a8ee297110b260b233aa76b /test_cal_notif.py
parent223292883da497b46caa0e01be0f4a1a3f134ea8 (diff)
downloadcal-notif-b928c3e5bdb01536b60d43f1bc3dd5a9ddb41057.tar.gz
cal-notif-b928c3e5bdb01536b60d43f1bc3dd5a9ddb41057.zip
Add the udt-themed rofi picker for per-event alarms
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'test_cal_notif.py')
-rw-r--r--test_cal_notif.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/test_cal_notif.py b/test_cal_notif.py
index f22fbc3..0bb647c 100644
--- a/test_cal_notif.py
+++ b/test_cal_notif.py
@@ -193,6 +193,18 @@ def test_due():
assert cn.announce(o, t + 5 * M, cn.DEFAULTS["voice"]) == "Adesso: x"
+def test_choice():
+ assert cn.parse_choice("1d, 1h") == ["1d", "1h"]
+ assert cn.parse_choice("90m") == ["1h 30m"]
+ assert cn.parse_choice("none") == []
+ assert cn.parse_choice("reset") is None
+ try:
+ cn.parse_choice("soon")
+ raise AssertionError
+ except ValueError:
+ pass
+
+
if __name__ == "__main__":
for name, fn in list(globals().items()):
if name.startswith("test_"):