From dfb80ba8d619920399e6103d7c2fbec19b339a86 Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Mon, 23 Aug 2021 18:30:34 -0700 Subject: [PATCH] Update test_cli.py --- tests/test_cli.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index 105fe436..0dc84e3c 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -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