fix: default task deadline to date only
ci / docker (push) Successful in 4m33s

This commit is contained in:
2026-09-08 09:24:00 +08:00
parent 113791229a
commit 972c4e1fb8
9 changed files with 68 additions and 12 deletions
+12
View File
@@ -29,6 +29,18 @@ def test_bootstrap_returns_navigation_and_current_user(client):
def test_task_due_date_without_time_round_trips(client):
inbox = boot(client)
created = client.post(
"/api/v1/tasks",
json={"title": "全天任务", "list_id": inbox["id"], "due_at": "2026-09-08T23:59:00Z", "due_has_time": False},
)
assert created.status_code == 201
assert created.json()["due_has_time"] is False
listed = client.get("/api/v1/tasks", params={"list_id": inbox["id"]}).json()["items"]
assert listed[0]["due_has_time"] is False
def test_creating_task_with_recurrence_is_atomic(client):
inbox = boot(client)
created = client.post(