From 7e96683f01d2687b8debeb4bdcb6de0c4c03507c Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Fri, 23 Oct 2026 16:28:01 -0400 Subject: [PATCH] The archive-search tests sign in and keep the listed notes alive The integration test registers the owner before writing notes, and the core test binds the "all" listing before borrowing ids from it. Task #6315. Co-Authored-By: Claude Opus 5.5 --- core/src/local/store.rs | 3 ++- tests/test_integration.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/local/store.rs b/core/src/local/store.rs index b960af2..bd129e1 100644 --- a/core/src/local/store.rs +++ b/core/src/local/store.rs @@ -1498,7 +1498,8 @@ mod tests { ids(&list(&conn, json!({"view": "trash"}))), vec![trashed.id.as_str()] ); - let mut all = ids(&list(&conn, json!({"view": "all"}))); + let everything = list(&conn, json!({"view": "all"})); + let mut all = ids(&everything); all.sort(); let mut expected = vec![kept.id.as_str(), archived.id.as_str()]; expected.sort(); diff --git a/tests/test_integration.py b/tests/test_integration.py index 687c4c1..03b6d55 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -1674,6 +1674,7 @@ async def test_owner_and_recipient_each_pin_archive_and_order_their_own(app_clie async def test_search_and_tags_look_through_the_archive_but_not_the_trash(app_client, db): + await _admin_with_invite(app_client) kept = await _owners_note(app_client, "ferry times #travel") archived = await _owners_note(app_client, "ferry booked last summer #travel") trashed = await _owners_note(app_client, "ferry refund #travel")