Skip to content

Running scripts that have not been installed #34

@brechtm

Description

@brechtm

I can succesfully test my console scripts when running from a Tox environment. However, I would also like to run these tests outside when not using Tox. The readme is not clear about whether this is possible or not.

My project layout is as follows:

src/
  package_name/
    __main__.py
    ...
setup.py

My setup.py:

setup(
    ...
    entry_points={
        'console_scripts': [
            'mycmd = package_name.__main__:main',
        ],
    ...
)

When running pytests in a development environment, it is common to set PYTHONPATH=src. Is it possible to point pytest-console-scripts to setup.py somehow in this case so that it can find the console scripts?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions