Added --debug and crash reporter to export, #628

This commit is contained in:
Rhet Turnbull
2022-02-13 14:51:31 -08:00
parent 65d51ab129
commit 060729c4c4
5 changed files with 51 additions and 30 deletions

View File

@@ -3883,8 +3883,8 @@ def test_export_directory_template_3():
"{created.year}/{foo}",
],
)
assert result.exit_code == 2
assert "Error: Invalid template" in result.output
assert result.exit_code != 0
assert "Invalid template" in result.output
def test_export_directory_template_album_1():
@@ -4203,8 +4203,8 @@ def test_export_filename_template_3():
"{foo}-{original_filename}",
],
)
assert result.exit_code == 2
assert "Error: Invalid template" in result.output
assert result.exit_code != 0
assert "Invalid template" in result.output
def test_export_album():
@@ -4896,6 +4896,7 @@ def test_export_force_update():
in result.output
)
@pytest.mark.skipif(
"OSXPHOTOS_TEST_EXPORT" not in os.environ,
reason="Skip if not running on author's personal library.",
@@ -6073,7 +6074,7 @@ def test_export_report_not_a_file():
export, [os.path.join(cwd, CLI_PHOTOS_DB), ".", "-V", "--report", "."]
)
assert result.exit_code != 0
assert "Aborted!" in result.output
assert "report is a directory, must be file name" in result.output
def test_export_as_hardlink_download_missing():
@@ -6101,7 +6102,7 @@ def test_export_as_hardlink_download_missing():
],
)
assert result.exit_code != 0
assert "Aborted!" in result.output
assert "Incompatible export options" in result.output
def test_export_missing():
@@ -6149,7 +6150,7 @@ def test_export_missing_not_download_missing():
export, [os.path.join(cwd, CLI_PHOTOS_DB), ".", "-V", "--missing", "."]
)
assert result.exit_code != 0
assert "Aborted!" in result.output
assert "Incompatible export options" in result.output
def test_export_cleanup():
@@ -7466,7 +7467,7 @@ def test_bad_query_eval():
],
)
assert result.exit_code != 0
assert "Error: Invalid query-eval CRITERIA" in result.output
assert "Invalid query-eval CRITERIA" in result.output
def test_query_min_size_1():