scripttest
scripttest copied to clipboard
Utilities to help with testing command line scripts
There have been some changes since the release of 1.3 in 2013. It would be nice to have a new release pushed to PyPI.
```sh $ tox -e py37 GLOB sdist-make: /tmp/scripttest/setup.py py37 inst-nodeps: /tmp/scripttest/.tox/.tmp/package/1/scripttest-1.3.zip py37 installed: exceptiongroup==1.1.1,importlib-metadata==6.6.0,iniconfig==2.0.0,packaging==23.1,pluggy==1.0.0,pytest==7.3.2,scripttest @ file:///tmp/scripttest/.tox/.tmp/package/1/scripttest-1.3.zip#sha256=fbc6c9943df657a02515ae3a83d6acc3d385cd653d514cbab8cabb540febe183,tomli==2.0.1,typing_extensions==4.6.3,zipp==3.15.0 py37 run-test-pre: PYTHONHASHSEED='2680854770' py37 run-test: commands[0] | py.test ============================= test session starts ============================== platform...
Includes py.typed for PEP-561 compliance.
Just normal build, install and test cycle used on building package from non-root account: - "setup.py build" - "setup.py install --root " - "pytest with PYTHONPATH pointing to setearch and...
An alternative to PR #5. Issue #4 should only apply to debug mode, so no reason to check on every `string` call. Also, document the debug flag and note that...
Currently in `TestFileEnvironment.run()` we walk the entire script directory [before](https://github.com/pypa/scripttest/blob/01c7db96ff01de034bd7781a4ed28d74eb716d32/scripttest.py#L240) and [after](https://github.com/pypa/scripttest/blob/01c7db96ff01de034bd7781a4ed28d74eb716d32/scripttest.py#L266) execution of the process. In general this is probably much less optimal than we could be - individual...
There should be an obvious way to use a temporary directory created by `tempfile.mkdtemp()` with scripttest, without triggering the assertion around line [322](https://github.com/pypa/scripttest/blob/master/scripttest.py#L322)