job-research/tests/test_cli.py
2026-05-28 13:02:24 +02:00

17 lines
649 B
Python

from subprocess import run
def test_installed_cli_help_exposes_build_profile_subcommand() -> None:
result = run(["uv", "run", "job-research", "--help"], capture_output=True, text=True, check=False)
assert result.returncode == 0
assert "build-profile" in result.stdout
assert "Build candidate-profile.yaml from CV and markdown profile." in result.stdout
def test_installed_cli_subcommand_help_works() -> None:
result = run(["uv", "run", "job-research", "build-profile", "--help"], capture_output=True, text=True, check=False)
assert result.returncode == 0
assert "Usage: job-research build-profile" in result.stdout