ruff format

This commit is contained in:
Justin Visser 2026-03-02 20:11:10 +01:00
parent b47f825d54
commit e156de22c3
5 changed files with 28 additions and 34 deletions

View file

@ -9,9 +9,7 @@ def test_init_db_creates_tables(tmp_data_dir: Path) -> None:
init_db(db_path)
conn = sqlite3.connect(db_path)
cursor = conn.execute(
"SELECT name FROM sqlite_master WHERE type='table' ORDER BY name"
)
cursor = conn.execute("SELECT name FROM sqlite_master WHERE type='table' ORDER BY name")
tables = {row[0] for row in cursor.fetchall()}
conn.close()
@ -25,9 +23,7 @@ def test_init_db_idempotent(tmp_data_dir: Path) -> None:
init_db(db_path)
conn = sqlite3.connect(db_path)
cursor = conn.execute(
"SELECT name FROM sqlite_master WHERE type='table' ORDER BY name"
)
cursor = conn.execute("SELECT name FROM sqlite_master WHERE type='table' ORDER BY name")
tables = {row[0] for row in cursor.fetchall()}
conn.close()
@ -63,8 +59,14 @@ def test_segments_table_schema(db: Path) -> None:
conn.close()
expected = {
"id", "type", "sort_order", "title",
"content", "metadata", "created_at", "updated_at",
"id",
"type",
"sort_order",
"title",
"content",
"metadata",
"created_at",
"updated_at",
}
assert columns == expected