Unittest-parametrize

Latest version: v1.5.0

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

Scan your dependencies

1.5.0

------------------

* On Python 3.11+, add `exception notes <https://docs.python.org/3.11/whatsnew/3.11.html#whatsnew311-pep678>`__ xwith parameter values to failures.
For example, the final line here:

.. code-block:: console

$ python -m unittest example
F
======================================================================
FAIL: test_square_0 (example.SquareTests.test_square_0)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/.../unittest_parametrize/__init__.py", line 52, in test
return _func(self, *args, **_params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/.../example.py", line 11, in test_square
self.assertEqual(x**2, expected)
AssertionError: 1 != 2
Test parameters: x=1, expected=2

* Drop Python 3.8 support.

* Support Python 3.13.

1.4.0

------------------

* Support whitespace in argument name strings.

Thanks to Arthur Rio in `PR 47 <https://github.com/adamchainz/unittest-parametrize/pull/47>`__.

1.3.0

------------------

* Drop Python 3.7 support.

1.2.0

------------------

* Make ``param.id`` optional.

Thanks to Adrien Cossa in `PR 20 <https://github.com/adamchainz/unittest-parametrize/pull/20>`__.

1.1.0

------------------

* Support Python 3.12.

1.0.0

------------------

* First release.

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.