-
Notifications
You must be signed in to change notification settings - Fork 14
Closed as not planned
Labels
Description
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?