Post.source_id refactor + tick/backfill modes + PARTIAL classifier + Mux fix + UX #44
@@ -176,15 +176,15 @@ async def test_list_hides_sidecar_synthetic_anchors(db):
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_set_backfill_runs_arms_source(db):
|
||||
"""The service method sets backfill_runs_remaining and returns the
|
||||
updated record so the API can echo it back."""
|
||||
"""The service method overrides backfill_runs_remaining (regardless of
|
||||
the auto-arm-on-create starting value) and returns the updated record
|
||||
so the API can echo it back."""
|
||||
artist = await _artist(db, "Alice")
|
||||
svc = SourceService(db)
|
||||
rec = await svc.create(
|
||||
artist_id=artist.id, platform="patreon",
|
||||
url="https://patreon.com/alice",
|
||||
)
|
||||
assert rec.backfill_runs_remaining == 0
|
||||
updated = await svc.set_backfill_runs(rec.id, 5)
|
||||
assert updated.backfill_runs_remaining == 5
|
||||
|
||||
|
||||
Reference in New Issue
Block a user