mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-23 03:06:55 -04:00
feat: list command fails when --index is used without --json or --html
This commit is contained in:
parent
885ff50449
commit
a77d6dc235
2 changed files with 12 additions and 1 deletions
|
@ -32,3 +32,7 @@ def test_list_html_index(process, disable_extractors_dict):
|
|||
output_html = list_process.stdout.decode("utf-8")
|
||||
assert "<footer>" in output_html
|
||||
assert "http://127.0.0.1:8080/static/example.com.html" in output_html
|
||||
|
||||
def test_list_index_with_wrong_flags(process):
|
||||
list_process = subprocess.run(["archivebox", "list", "--index"], capture_output=True)
|
||||
assert "--index can only be used with --json or --html options." in list_process.stderr.decode("utf-8")
|
Loading…
Add table
Add a link
Reference in a new issue