fix: join recognized photo people with ampersands [skip ci]
This commit is contained in:
@@ -24,12 +24,12 @@ def test_watermark_includes_filename_and_recognized_people(service, monkeypatch)
|
||||
"date": "2026-10-17",
|
||||
"title": "Family",
|
||||
"filename": "one.jpg",
|
||||
"people": "Alice · Bob",
|
||||
"people": "Alice & Bob",
|
||||
},
|
||||
service.renderer.font,
|
||||
size=(1600, 1200),
|
||||
)
|
||||
assert drawn == ["2026-10-17 · Alice · Bob · Family · one.jpg"]
|
||||
assert drawn == ["2026-10-17 · Alice & Bob · Family · one.jpg"]
|
||||
|
||||
|
||||
@pytest.mark.parametrize("size", [(1600, 1200), (1200, 1600)])
|
||||
|
||||
@@ -134,7 +134,7 @@ def test_api_caption_keeps_filename_and_folder_with_optional_people(
|
||||
assert caption["date"] == "2026-10-17"
|
||||
assert caption["title"] == "Family"
|
||||
assert caption["filename"] == "one.jpg"
|
||||
assert caption.get("people", "") == ("Alice · Bob" if labels_available else "")
|
||||
assert caption.get("people", "") == ("Alice & Bob" if labels_available else "")
|
||||
|
||||
|
||||
def test_source_without_mount_pagination_scope_and_session(
|
||||
|
||||
Reference in New Issue
Block a user