Updated tests for #561 [skip ci]
This commit is contained in:
@@ -6029,7 +6029,7 @@ def test_export_cleanup_empty_album():
|
|||||||
|
|
||||||
|
|
||||||
def test_export_cleanup_accented_album_name():
|
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
|
import pathlib
|
||||||
|
|
||||||
from osxphotos.cli import export
|
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
|
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():
|
def test_save_load_config():
|
||||||
"""test --save-config, --load-config"""
|
"""test --save-config, --load-config"""
|
||||||
|
|||||||
Reference in New Issue
Block a user