Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions test_borg_import_help.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import subprocess
import sys
import shlex


def test_borg_import_help_runs():
"""Check that `python -m borg_import --help` executes successfully."""
cmd = f"{sys.executable} -m borg_import --help"
result = subprocess.run(
shlex.split(cmd),
capture_output=True,
text=True,
)

assert result.returncode == 0
assert "usage" in (result.stdout + result.stderr).lower()