|
|
3a6018a |
# python-scripttester
|
|
|
3a6018a |
|
|
|
4fe1689 |
[Scripttest](https://github.com/matthew-brett/scripttester) provides a class
|
|
|
4fe1689 |
to be instantiated in tests that checks that scripts can be run and give
|
|
|
4fe1689 |
correct output. The class tries to find your scripts whether you have
|
|
|
4fe1689 |
installed them or not. If you have not installed them, the scripts will not
|
|
|
4fe1689 |
be on your system PATH, and we have to find them. The heuristic is to look
|
|
|
4fe1689 |
(by default) in the directory containing `mymodule`; if there is a `setup.py`
|
|
|
4fe1689 |
file there, and a `scripts` subdirectory, assume that directory contains the
|
|
|
4fe1689 |
scripts.
|
|
|
4fe1689 |
|
|
|
4fe1689 |
Note there is no way of using this not-installed mechanism to find entrypoint
|
|
|
4fe1689 |
scripts, that have not been installed. To find these, we would have to run
|
|
|
4fe1689 |
the `setup.py` file.
|