fix(fc3k): add origin=imported_filesystem to test ImageRecord ctors (second NOT NULL column after mime)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-25 01:28:54 -04:00
parent a0136fa30d
commit 832345a245
3 changed files with 8 additions and 0 deletions
+2
View File
@@ -60,6 +60,7 @@ async def test_delete_artist_cascade_task_removes_artist_and_records_ok(
db_sync.add(ImageRecord(
artist_id=a.id, path=str(f),
sha256=f"{i:064x}", size_bytes=10, mime="image/jpeg",
origin="imported_filesystem",
))
db_sync.commit()
artist_id = a.id
@@ -123,6 +124,7 @@ async def test_bulk_delete_images_task_removes_listed_images(
img = ImageRecord(
artist_id=a.id, path=str(f),
sha256=f"a{i:063x}", size_bytes=10, mime="image/jpeg",
origin="imported_filesystem",
)
db_sync.add(img)
db_sync.flush()