Added CLI test for export

This commit is contained in:
Rhet Turnbull
2020-01-19 21:55:13 -08:00
parent f0b18c3d29
commit bed7378039
2 changed files with 39 additions and 1 deletions

View File

@@ -762,7 +762,10 @@ def export(
if only_photos:
ismovie = False
db = get_photos_db(*photos_library, db, cli_obj.db)
# below needed for to make CliRunner work for testing
cli_db = cli_obj.db if cli_obj is not None else None
db = get_photos_db(*photos_library, db, cli_db)
if db is None:
click.echo(cli.commands["export"].get_help(ctx), err=True)
click.echo("\n\nLocated the following Photos library databases: ", err=True)