Fix for #506
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user