Skip to content

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

@bittner

Description

@bittner

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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions