Skip to content

Commit 7fde8d5

Browse files
chore(application): adapt test
1 parent 8efdaea commit 7fde8d5

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

tests/aignostics/application/cli_test.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,14 +290,12 @@ def test_cli_run_result_download_invalid_uuid(runner: CliRunner, tmp_path: Path)
290290

291291

292292
def test_cli_run_result_download_uuid_not_found(runner: CliRunner, tmp_path: Path) -> None:
293-
"""Check run result download fails on uuid not found."""
293+
"""Check run result download fails on ID not found."""
294294
result = runner.invoke(
295295
cli, ["application", "run", "result", "download", "00000000000000000000000000000000", str(tmp_path)]
296296
)
297-
assert result.exit_code == 1
298-
assert "Failed to download results of run with ID '00000000000000000000000000000000'" in result.output.replace(
299-
"\n", ""
300-
)
297+
assert "Run with ID '00000000000000000000000000000000' not found." in result.output.replace("\n", "")
298+
assert result.exit_code == 2
301299

302300

303301
def test_cli_run_result_delete(runner: CliRunner) -> None:

0 commit comments

Comments
 (0)