From 8b99dc9b8148007597b3d2d976d2a27c65231ea1 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Mon, 15 Jun 2026 10:15:04 -0400 Subject: [PATCH] test(downloader): fix test_sidecar_written_and_findable for post-first minimal sidecar (#856) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The per-media sidecar no longer carries title/url/content (post-first, #856) — update the assertion to expect image identity only (category/id/source_url). Co-Authored-By: Claude Opus 4.8 --- tests/test_patreon_downloader.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/test_patreon_downloader.py b/tests/test_patreon_downloader.py index 9af8c1e..5162364 100644 --- a/tests/test_patreon_downloader.py +++ b/tests/test_patreon_downloader.py @@ -174,8 +174,11 @@ def test_sidecar_written_and_findable(tmp_path): data = json.loads(sidecar.read_text()) assert data["category"] == "patreon" assert data["id"] == "1001" - assert data["title"] == "My Post Title" - assert data["url"] == "https://www.patreon.com/posts/1001" + # Post-first (#856): the per-media sidecar carries image identity ONLY — no + # post body/title/url. The post-record (`_post.json`) owns those now. + assert "title" not in data + assert "url" not in data + assert "content" not in data # #830 Phase 2: the per-media sidecar records THIS file's CDN URL so the # importer can persist its filehash for inline-image localization. assert data["source_url"] == "https://cdn.patreon.com/media1.png"