./devel/py-test-console-scripts, Pytest plugin for testing console scripts

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.4.1, Package name: py310-test-console-scripts-1.4.1, Maintainer: pkgsrc-users

Pytest-console-scripts is a pytest plugin for running python scripts from
within tests. It's quite similar to subprocess.run(), but it also has an
in-process mode, where the scripts are executed by the interpreter that's
running pytest (using some amount of sandboxing).


Master sites:

Filesize: 20.502 KB

Version history: (Expand)


CVS history: (Expand)


   2023-06-12 11:30:55 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test-console-scripts: updated to 1.4.1

1.4.1

Removed
- Dropped support for Python 3.7

Fixed
- Fix loading scripts with non-UTF-8 encodings.
- Print output when a subprocess runner with `check=True` fails was missing.
   2023-05-29 11:19:12 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-test-console-scripts: updated to 1.4.0

1.4.0

Added

Added type-hinting for all types, pytest_console_scripts.ScriptRunner can now be \ 
used to hint the script_runner fixture.
Added support for the shell and check keywords for in-process mode. These behave \ 
as similarly to subprocess.run as possible.
Script runners now take command arguments similar to subprocess.run, including \ 
support for PathLike objects.

Deprecated

Passing command arguments in *args is now deprecated and will raise warnings. \ 
These should be wrapped in a list or tuple from now on, similar to \ 
subprocess.run.

Removed

Dropped support for Python 3.6

Fixed

Install-time dependencies have been fixed.
   2023-05-09 18:58:40 by Thomas Klausner | Files touched by this commit (1)
Log message:
py-test-console-scripts: add missing tool dependency
   2023-05-05 12:03:32 by Adam Ciarcinski | Files touched by this commit (4)
Log message:
py-test-console-scripts: added version 1.3.1

Pytest-console-scripts is a pytest plugin for running python scripts from
within tests. It's quite similar to subprocess.run(), but it also has an
in-process mode, where the scripts are executed by the interpreter that's
running pytest (using some amount of sandboxing).