mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-06-23 03:50:52 -04:00
19 lines
500 B
Python
19 lines
500 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
Tests for archivebox persona command.
|
|
|
|
TODO: expand beyond command discovery into create/list/update/delete behavior.
|
|
"""
|
|
|
|
from archivebox.tests.conftest import run_archivebox_cmd
|
|
|
|
|
|
def test_persona_help_runs_successfully(tmp_path):
|
|
"""The persona command should be registered and expose help."""
|
|
|
|
result = run_archivebox_cmd(["persona", "--help"])
|
|
|
|
assert result.returncode == 0
|
|
assert "persona" in result.stdout.lower()
|
|
assert "list" in result.stdout
|