Assertionlib

Latest version: v3.2.2

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

Scan your dependencies

Page 3 of 5

2.2.2

*****
* Replaced `pycodestyle <https://pypi.org/project/pycodestyle/>`_ tests with
`pytest-flake8 <https://pypi.org/project/pytest-flake8/>`_.
* Added tests using `doctest <https://docs.python.org/3/library/doctest.html>`_.

2.2.1

*****
* Added a mypy test.
* Further refined type annotations.

2.2.0

*****
* Marked AssertionLib as a typed package (`PEP 561 <https://www.python.org/dev/peps/pep-0561/>`_).
* Introduced updates and fixes to the type-annotations across the board.
* Exposed ``NDRepr``, ``aNDRepr`` and ``AbstractDataClass`` in the main ``__init__.py`` file.
* Added the ``__slots__`` attribute to ``AbstractDataClass``.
* Added the ``AssertionManager.any()`` and ``AssertionManager.all()`` methods.
* Added the ``post_process`` and ``message`` keywords to all
``AssertionManager`` assertion methods.

2.1.0

*****
* Made the recursion safeguard in ``AbstractDataClass`` thread-safe.
* Added the ``AbstractDataClass._str()`` function for creating string-representations of key/value pairs.
* Added the ``AbstractDataClass._eq()`` function for comparing two attribute values.
* Minor Improvements to ``Exception`` handling.

2.0.0

*****
* Added new ``AssertionManager()`` methods based on the builtin ``math`` module.
* Swapped the ``allclose()`` function with ``math.isclose()``.
Note that one of its keyword arguments has now changed names from ``rtol`` to ``rel_tol``.
* Added tests for OSX.

1.1.1

*****
* Fixed an issue where ``AssertionManager.function_eq()`` would raise an ``AttributeError`` if
the two functions ``__code__`` attributes were not equal in length.

Page 3 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.