This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user