This commit is contained in:
Rhet Turnbull
2021-08-23 14:23:39 -07:00
parent 8963af9229
commit db5b34d589
4 changed files with 56 additions and 2 deletions

View File

@@ -393,6 +393,12 @@ UUID_ALBUM_SEQ = {
},
}
UUID_EMPTY_TITLE = "7783E8E6-9CAC-40F3-BE22-81FB7051C266" # IMG_3092.heic
TEMPLATE_VALUES_EMPTY_TITLE = {
"{title,No Title} and {descr,No Descr}": "No Title and No Descr"
}
@pytest.fixture(scope="module")
def photosdb_places():
@@ -1179,3 +1185,11 @@ def test_detected_text(photosdb):
for template, value in TEMPLATE_VALUES_DETECTED_TEXT.items():
rendered, _ = photo.render_template(template)
assert value in "".join(rendered)
def test_empty_title(photosdb):
"""Test for issue #506"""
photo = photosdb.get_photo(UUID_EMPTY_TITLE)
for template, value in TEMPLATE_VALUES_EMPTY_TITLE.items():
rendered, _ = photo.render_template(template)
assert value in "".join(rendered)