def package_has_tests(package_path: Path) -> bool:
    """Returns whether a package folder contains a 'tests' subfolder."""
    tests_folder = package_path / "tests"
    return package_path.is_dir() and tests_folder.exists() and tests_folder.is_dir()
Returns whether a package folder contains a 'tests' subfolder.
llama-dev/llama_dev/utils.py