From 8438305faf5b42e70a02bbb61bfd2e9ba8f8d347 Mon Sep 17 00:00:00 2001 From: antoniotp2 <115451616+antoniotp2@users.noreply.github.com> Date: Wed, 10 Dec 2025 01:25:28 +0200 Subject: [PATCH] Add help test for borg-import --- test_borg_import_help.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test_borg_import_help.py diff --git a/test_borg_import_help.py b/test_borg_import_help.py new file mode 100644 index 0000000..948c86e --- /dev/null +++ b/test_borg_import_help.py @@ -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()