DRY pass #3: core tests open their store and seed a label one way (#5373)

Five test modules wrote the same db() over memory_conn, and portable.rs
unwrapped it inline; local::test_db() is that. Four pull/push tests wrote the
same label INSERT; local::seed_label(conn, id, name, dirty) is it. Both are
cfg(test), beside memory_conn, as wire::sample_note is beside wire::Note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 15:17:30 -04:00
co-authored by Claude Opus 5.5
parent 1b128a9374
commit 78810d8832
7 changed files with 27 additions and 40 deletions
+1 -3
View File
@@ -309,9 +309,7 @@ pub fn status(conn: &Connection) -> rusqlite::Result<Status> {
mod tests {
use super::*;
fn db() -> Connection {
crate::local::memory_conn().expect("in-memory db")
}
use crate::local::test_db as db;
#[test]
fn fresh_store_is_unlinked() {