From 5666dd13c0f1da2f5c154d3868e65965327f9e1f Mon Sep 17 00:00:00 2001 From: Uyanide Date: Tue, 7 Apr 2026 14:55:37 +0200 Subject: [PATCH] test: -1 --- tests/test_cache.py | 45 --------------------------------------------- 1 file changed, 45 deletions(-) diff --git a/tests/test_cache.py b/tests/test_cache.py index 835c972..89d5dc2 100644 --- a/tests/test_cache.py +++ b/tests/test_cache.py @@ -171,51 +171,6 @@ def test_migrate_negative_row_splits_into_two_slot_rows(tmp_path: Path) -> None: ] -def test_migrate_normalizes_old_slot_spelling(tmp_path: Path) -> None: - db_path = tmp_path / "slot-spelling.db" - - with sqlite3.connect(db_path) as conn: - conn.execute( - """ - CREATE TABLE cache ( - key TEXT NOT NULL, - positive_kind TEXT NOT NULL, - source TEXT NOT NULL, - status TEXT NOT NULL, - lyrics TEXT, - created_at INTEGER NOT NULL, - expires_at INTEGER, - artist TEXT, - title TEXT, - album TEXT, - length INTEGER, - confidence REAL, - confidence_version INTEGER, - PRIMARY KEY (key, positive_kind) - ) - """ - ) - conn.execute( - """ - INSERT INTO cache - (key, positive_kind, source, status, lyrics, created_at, expires_at, artist, title, album, length, confidence, confidence_version) - VALUES - ('k1', 'SYNCHED', 's1', 'SUCCESS_SYNCED', 'l1', 1, NULL, 'A', 'T', 'AL', 180000, 80.0, 1), - ('k1', 'UNSYNCHED', 's1', 'SUCCESS_UNSYNCED', 'l2', 1, NULL, 'A', 'T', 'AL', 180000, 70.0, 1) - """ - ) - conn.commit() - - CacheEngine(str(db_path)) - - with sqlite3.connect(db_path) as conn: - rows = conn.execute( - "SELECT positive_kind FROM cache ORDER BY positive_kind" - ).fetchall() - - assert rows == [(SLOT_SYNCED,), (SLOT_UNSYNCED,)] - - def test_set_and_get_roundtrip_with_ttl( monkeypatch: pytest.MonkeyPatch, cache_db: CacheEngine ) -> None: