From ca242e59a6f45a7e2bafc06362541ef32a5bc86f Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Wed, 7 Oct 2026 15:06:39 -0400 Subject: [PATCH] tests: adding a checklist item answers 201 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The edit-share test expected 200 from POST …/items, which creates. #5174. Co-Authored-By: Claude Opus 5.5 --- tests/test_integration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_integration.py b/tests/test_integration.py index 65802c7..3ecdc3e 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -1281,7 +1281,7 @@ async def test_a_view_share_writes_nothing_and_an_edit_share_writes_only_text(ap assert (await edited.get_json())["labels"] == [] ticked = await recipient.patch(f"/api/notes/{nid}/items/0", json={"checked": True}) assert ticked.status_code == 200 - assert (await recipient.post(f"/api/notes/{nid}/items", json={"text": "eggs"})).status_code == 200 + assert (await recipient.post(f"/api/notes/{nid}/items", json={"text": "eggs"})).status_code == 201 # A #tag typed into someone else's note files it under the OWNER's tags. owner_tags = [lb["name"] for lb in (await (await app_client.get("/api/labels")).get_json())["labels"]]