- pyproject.toml: add [tool.ruff] config suppressing E402/W293 globally, F841/E741/E702 in tests, E741 in scripts - inventory.py: split semicolon import (E702) - recipes.py: fix logger -> log (F821 undefined name) - shopping.py: rename l -> lnk in list comprehension (E741) - format_conversion.py: noqa F841 on CUDA flag (used as future hook) - backfill_keywords.py: rename done -> _done (F841) - ingest_purplecarrot.py: drop == True comparison (E712) - Auto-fix: I001 import sorting, F401 unused imports across all files
20 lines
505 B
Python
20 lines
505 B
Python
from pathlib import Path
|
|
|
|
import pytest
|
|
|
|
from app.db.store import Store
|
|
|
|
|
|
@pytest.fixture
|
|
def tmp_db(tmp_path: Path) -> Path:
|
|
return tmp_path / "test.db"
|
|
|
|
|
|
def test_migration_028_adds_community_pseudonyms(tmp_db):
|
|
"""Migration 028 adds community_pseudonyms table to per-user kiwi.db."""
|
|
store = Store(tmp_db)
|
|
cur = store.conn.execute(
|
|
"SELECT name FROM sqlite_master WHERE type='table' AND name='community_pseudonyms'"
|
|
)
|
|
assert cur.fetchone() is not None
|
|
store.close()
|