python-sbom is not in the same directory as Python interpreter. --- python_sbom-0.5.0/tests/_cli/test_main.py.orig +++ python_sbom-0.5.0/tests/_cli/test_main.py @@ -26,7 +26,7 @@ def test_console_script() -> None: - script = Path(sys.executable).parent / "python-sbom" + script = "python-sbom" assert subprocess.check_output([script, "--help"], text=True).startswith("usage: python-sbom ")