checkvist-api/testdata/checklists/single.json
Oliver Jakoubek 0bb7d2d735 Add unit tests for Checklists
Create checklists_test.go with comprehensive tests:
- TestChecklists_List: list all checklists
- TestChecklists_ListArchived: list with archived filter
- TestChecklists_Get: get single checklist by ID
- TestChecklists_Get_NotFound: handle 404 error
- TestChecklists_Create: create new checklist
- TestChecklists_Update: update checklist name
- TestChecklists_Delete: delete checklist

Add testdata/checklists/ fixtures:
- list.json: sample checklist list
- list_archived.json: archived checklists
- single.json: single checklist response

All 7 tests pass using httptest.Server mocking.

Closes checkvist-api-347
2026-01-14 13:42:05 +01:00

11 lines
213 B
JSON

{
"id": 1,
"name": "My First Checklist",
"public": false,
"archived": false,
"read_only": false,
"task_count": 10,
"task_completed": 3,
"tags_as_text": "",
"updated_at": "2026-01-14T10:00:00Z"
}