Updated tests

This commit is contained in:
Rhet Turnbull
2022-02-05 14:30:20 -08:00
parent 7d67b81879
commit 55a601c07e

View File

@@ -6125,6 +6125,9 @@ def test_export_cleanup_exiftool_accented_album_name_same_filenames():
runner = CliRunner()
cwd = os.getcwd()
# pylint: disable=not-context-manager
with tempfile.TemporaryDirectory() as report_dir:
# keep report file out of of expor dir for --cleanup
report_file = os.path.join(report_dir, "test.csv")
with tempfile.TemporaryDirectory() as tempdir:
result = runner.invoke(
export,
@@ -6141,7 +6144,7 @@ def test_export_cleanup_exiftool_accented_album_name_same_filenames():
"--keyword-template",
"{keyword}",
"--report",
"test.csv",
report_file,
"--skip-original-if-edited",
"--update",
"--touch-file",
@@ -6166,7 +6169,7 @@ def test_export_cleanup_exiftool_accented_album_name_same_filenames():
"--keyword-template",
"{keyword}",
"--report",
"test.csv",
report_file,
"--skip-original-if-edited",
"--update",
"--touch-file",