Pytest-workflow

Latest version: v2.1.0

Safety actively analyzes 683530 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

2.1.0

---------------------------
+ Python version 3.7 support is dropped because it is deprecated. Python
version 3.12 was added.
+ Fixed a bug where pytest 8.1+ would raise a ``PluginValidationError`` because
the hook ``pytest_collect_file()`` has finally dropped the deprecated
argument ``path`` from its specification.
+ Add extract_md5sum check on uncompressed contents of compressed output files.
Gzipped files contain a timestamp which makes it hard to directly compare the
md5sums of gzipped files.
+ Document naming conventions for Python test discovery

2.0.1

---------------------------
+ Fixed a bug where pytest-workflow would crash on logs that used non-ASCII
characters where the chunk of size ``--stderr-bytes`` did not properly align
with the used encoding.

2.0.0

---------------------------
This major release greatly cleans up the output of pytest-workflow in case of
an error as well as providing the stderr and stdout last bytes for debugging
purposes. When the exit code test fails all other tests from the workflow
are skipped.

+ Python 3.6 is no longer supported. It has been removed from github actions,
as such we can no longer guarantee that pytest-workflow works properly
with python 3.6.
+ Fix an issue where symlinks in git repositories could not be properly copied.
+ Added an optional encoding key for files, stdout and stderr so the file can
be opened with the proper encoding.
+ Make content tests more efficient by reading each file only once instead of
twice when there are both strings and regexes to check for.
+ When the ``--git-aware`` flag is used a submodule check is performed in order
to assert that all submodules are properly checked out. This prevents
unclear copying errors.
+ Tests are now skipped if the workflow does not exit with the desired exit
code, except for the exit code tests, to reduce visual clutter when reporting
failing tests.
+ Tests for checking file content are now skipped when the file does not exist
in order to reduce visual clutter when reporting failing tests.
+ Test and support for Python 3.11.
+ Add ``--stderr-bytes`` or ``--sb`` option to change the maximum
number of bytes to display for the stderr and stdout on
command failure.
+ Add stderr and stdout to be displayed on command failure
+ Document using ``pytest.ini`` as a way of setting specific per repository
settings for pytest-workflow.
+ Add tests for nextflow.
+ Document the use of environment variables with pytest-workflow.
+ A minimum of pytest 7.0.0 is now a requirement for pytest-workflow.
This fixes the deprecation warnings that started on the release of pytest
7.0.0.
+ Throw a more descriptive error when a file copied with the --git-aware flag
is not present on the filesystem anymore.
+ Document pytest flags ``-k`` and ``-m`` are not supported.

1.6.0

---------------------------
+ Add a ``--git-aware`` or ``--ga`` option to only copy copy files listed by
git ls-files. This omits the ``.git`` folder, all untracked files and
everything ignored by ``.gitignore``. This reduces the number of copy
operations drastically.

Pytest-workflow will now emit a warning when copying of a git directory is
detected without the ``--git-aware`` option.

+ Add support and tests for Python 3.10

1.5.0

---------------------------
+ Add support for python 3.9
+ Update the print statement for starting jobs to be more structured. This will
make the output easier to to read and use, since different fields (stdout,
stderr, command, etc) are all on their own line.
+ Do not crash when directories can not be removed due to permission errors.
Instead display a message to notify the users which directories could not be
removed. These issues occurred sometimes when tests involving docker were
run.

1.4.0

---------------------------
+ Usage of the ``name`` keyword argument in workflow marks is now deprecated.
Using this will crash the plugin with a DeprecationWarning.
+ Update minimum python requirement in the documentation.
+ Removed redundant check in string checking code.
+ Add new options ``contains_regex`` and ``must_not_contain_regex`` to check
for regexes in files and stdout/stderr.

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.