Scripttest provides a class
to be instantiated in tests that checks that scripts can be run and give
correct output. The class tries to find your scripts whether you have
installed them or not. If you have not installed them, the scripts will not
be on your system PATH, and we have to find them. The heuristic is to look
(by default) in the directory containing mymodule
; if there is a setup.py
file there, and a scripts
subdirectory, assume that directory contains the
scripts.
Note there is no way of using this not-installed mechanism to find entrypoint
scripts, that have not been installed. To find these, we would have to run
the setup.py
file.