fix(test): ruff F841 — don't bind unmatched seed images (tuple-unpack flagged)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -55,7 +55,9 @@ async def _post(db, artist_name, slug, ext):
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_scroll_post_id_filter(db):
|
||||
i1, i2, i3 = await _img(db, 1), await _img(db, 2), await _img(db, 3)
|
||||
i1 = await _img(db, 1)
|
||||
i2 = await _img(db, 2)
|
||||
await _img(db, 3) # unmatched image — proves the filter excludes it
|
||||
_, s, p = await _post(db, "A", "a", "10")
|
||||
db.add(ImageProvenance(image_record_id=i1.id, post_id=p.id,
|
||||
source_id=s.id))
|
||||
@@ -85,7 +87,8 @@ async def test_scroll_post_id_dedups_multi_rows(db):
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_scroll_artist_id_filter(db):
|
||||
i1, i2 = await _img(db, 1), await _img(db, 2)
|
||||
i1 = await _img(db, 1)
|
||||
await _img(db, 2) # unmatched image — proves the filter excludes it
|
||||
a, s, p = await _post(db, "A", "a", "10")
|
||||
db.add(ImageProvenance(image_record_id=i1.id, post_id=p.id,
|
||||
source_id=s.id))
|
||||
|
||||
Reference in New Issue
Block a user