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