From 77a49a09a1bee74113a7114c543fbc25fa410ffc Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Fri, 4 Feb 2022 05:55:52 -0800 Subject: [PATCH] Updated tests for #561 [skip ci] --- tests/test_cli.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index 3b3f6346..581a598f 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -6029,7 +6029,7 @@ def test_export_cleanup_empty_album(): def test_export_cleanup_accented_album_name(): - """test export with --cleanup flag and photos in album with accented unicode characters (#561)""" + """test export with --cleanup flag and photos in album with accented unicode characters (#561, #618)""" import pathlib from osxphotos.cli import export @@ -6052,6 +6052,23 @@ def test_export_cleanup_accented_album_name(): ) assert "Deleted: 0 files, 0 directories" in result.output + # do it again + result = runner.invoke( + export, + [ + os.path.join(cwd, CLI_PHOTOS_DB), + tempdir, + "-V", + "--update", + "--cleanup", + "--directory", + "{folder_album}", + "--update", + ], + ) + assert "exported: 0, updated: 0" in result.output + assert "Deleted: 0 files, 0 directories" in result.output + def test_save_load_config(): """test --save-config, --load-config"""