pytest-console-scripts
pytest-console-scripts copied to clipboard
Pytest plugin for testing console scripts
During `pep440` test suite execution I found that pytest failed because missing `pkg_resources` module in build env. ```console + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-pep440-0.1.2-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-pep440-0.1.2-2.fc35.x86_64/usr/lib/python3.8/site-packages + /usr/bin/pytest -ra Traceback (most recent call last): File "/usr/bin/pytest",...
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...
Hey, I am using the pytest-console-scripts in order to test if some of my scripts are working fine. The scripts perform a single training step for a machine learning model....
I am trying to test a console script that itself runs calls `subprocess` a few times in the script. These subprocess calls are just skipped when using `pytest-console-scripts-0.2.0`. The rest...
All of the `sys.std*` are of type `io.TextIOWrapper` which has a `.buffer` of type `io.BufferedReader`. Without the mock implementing TextIOWrapper, it wont work with any the code being tested that...
Currently, the `Contributing` section from the [README](https://github.com/kvas-it/pytest-console-scripts/blob/master/README.rst#contributing) requires that contributions made the repository to keep the same level of test coverage. There is no coverage report setup in `tox.ini`, though....
I could not find a Fedora package for pytest-console-scripts. Can you package it for Fedora? A rpm spec file can be easily obtained using pyp2rpm which creates a spec file...
I tried to run tests for `pytest-xdist 3.4.0` with `pytest-console-scripts 1.4.1` installed and disabled using `-p no:console-scripts` set in the `PYTEST_ADDOPTS` environment variable. And, surprisingly, `pytest-xdist` tests fails: ``` =============================...
I have an argparse-based script named `foo` that accepts multiple flags (say `--a` and `--b`). I wrote a test module for this script, testing each flag separately, ```python def test_foo_a(script_runner):...
Add tests for Python 3.12 3.13 and PyPy 3.10. Publishing uses the correct URL. Removed `types-setuptools` because there is no `setup.py` to check. Failing CI tests were caused by installing...