Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use assert shutil.which("example") for testing entrypoint script existence #52

Open
bittner opened this issue Feb 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@bittner
Copy link
Member

bittner commented Feb 27, 2024

Currently, the example demonstrate using the package's shell command to verify the existence of an entrypoint script.

Another way to perform the verification would be shutil.which, which is a platform-independent implementation of where (Windows) and which (Unix/Linux/macOS). Example:

def test_entrypoint():
    assert shutil.which("example")
@bittner bittner added the enhancement New feature or request label Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant