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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user