Add test for record with show-hashes
This commit is contained in:
parent
cea5d5abf8
commit
3a2c15aaf4
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user