claude fixoval /remind skill

This commit is contained in:
lachtan
2026-06-10 07:58:27 +02:00
parent f93c1cf88e
commit b773164bc8
3 changed files with 45 additions and 34 deletions

View File

@@ -39,9 +39,8 @@ def test_add_list(tmp_path, capsys):
ret = _run(db_path, ["list"])
captured = capsys.readouterr()
assert ret == 0
data = json.loads(captured.out)
assert len(data["reminders"]) == 1
assert data["reminders"][0]["text"] == "drink water"
assert "drink water" in captured.out
assert "cron: 0 9 * * *" in captured.out
def test_add_at_validation(tmp_path, capsys):
@@ -78,8 +77,7 @@ def test_remove(tmp_path, capsys):
ret = _run(db_path, ["list"])
captured = capsys.readouterr()
data = json.loads(captured.out)
assert len(data["reminders"]) == 0
assert captured.out.strip() == ""
def test_remove_no_match(tmp_path, capsys):