From 3a2c15aaf47e3116a7212386f3143c461a1cc9aa Mon Sep 17 00:00:00 2001 From: Jacob Hinkle Date: Wed, 12 Oct 2022 10:21:09 -0400 Subject: [PATCH] Add test for record with show-hashes --- tests/cli/test_record.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/cli/test_record.py b/tests/cli/test_record.py index 89cd67b..5964474 100644 --- a/tests/cli/test_record.py +++ b/tests/cli/test_record.py @@ -37,6 +37,23 @@ def test_record(junk_dir: Path) -> None: assert result.exit_code == 0 assert "ERROR" not in result.output + # Test with show-hashes + result = runner.invoke( + main, + [ + "record", + "-s", + str(junk_dir), + "-m", + "This is just a test recording", + "--yes", # don't ask for confirmation + "--show-hashes", + ], + ) + print(result.output) + assert result.exit_code == 0 + assert "ERROR" not in result.output + # test again with confirmation result = runner.invoke( main,