fix: classify unsent upload connections and omit raw photo filenames [skip ci]

This commit is contained in:
渡口浪人
2026-10-18 08:19:03 +08:00
parent d7600f8329
commit 41c6897151
15 changed files with 53 additions and 20 deletions
+4 -2
View File
@@ -7,7 +7,9 @@ from pigway_frame_flow.renderers.photo_caption import render_captioned_photo
from pigway_frame_flow.renderers.photo_layout import PhotoLayout, WatermarkLayout
def test_watermark_includes_filename_and_recognized_people(service, monkeypatch):
def test_watermark_omits_raw_filename_and_includes_recognized_people(
service, monkeypatch
):
drawn = []
original = ImageDraw.ImageDraw.text
@@ -29,7 +31,7 @@ def test_watermark_includes_filename_and_recognized_people(service, monkeypatch)
service.renderer.font,
size=(1600, 1200),
)
assert drawn == ["2026-10-17 · Alice & Bob · Family · one.jpg"]
assert drawn == ["2026-10-17 · Alice & Bob · Family"]
@pytest.mark.parametrize("size", [(1600, 1200), (1200, 1600)])