Update test_cli.py

This commit is contained in:
Rhet Turnbull
2021-08-23 18:30:34 -07:00
committed by GitHub
parent 94b818b156
commit dfb80ba8d6

View File

@@ -7196,6 +7196,7 @@ def test_export_description_template_conditional():
],
)
assert result.exit_code == 0
json_got = json.load(f"{FILENAME_EMPTY_TITLE}.json")[0]
assert json_got["EXIF:ImageDescription"] == DESCRIPTION_VALUE_TITLE_CONDITIONAL
with fp as open(f"{FILENAME_EMPTY_TITLE}.json","r"):
json_got = json.load(fp)[0]
assert json_got["EXIF:ImageDescription"] == DESCRIPTION_VALUE_TITLE_CONDITIONAL