Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
.. image:: https://img.shields.io/pypi/v/pytest-icdiff.svg :target: https://pypi.org/project/pytest-icdiff :alt: PyPI version
.. image:: https://img.shields.io/conda/vn/conda-forge/pytest-icdiff.svg :target: https://anaconda.org/conda-forge/pytest-icdiff :alt: conda-forge version
.. image:: https://img.shields.io/pypi/pyversions/pytest-icdiff.svg :target: https://pypi.org/project/pytest-icdiff :alt: Python versions
Better diffs in pytest
_ assertion error messages using ICDiff
_.
pip install pytest-icdiff
Once you've installed it, pytest
will produce nice colourised diffs for any assert ==
:
.. image:: https://raw.githubusercontent.com/hjwp/pytest-icdiff/main/example_output.png?raw=true :alt: example colourised diff
Issues and PRs welcome.
Thanks to the maintainers of ICDiff
_ and also pprintpp
_ !
Distributed under the terms of the Unlicense
_ license, "pytest-icdiff" is free and open source software
This pytest
_ plugin was generated with Cookiecutter
_ along with @hackebrot
's cookiecutter-pytest-plugin
template.
.. _Cookiecutter
: https://github.com/audreyr/cookiecutter
.. _@hackebrot
: https://github.com/hackebrot
.. _cookiecutter-pytest-plugin
: https://github.com/pytest-dev/cookiecutter-pytest-plugin
.. _pytest
: https://github.com/pytest-dev/pytest
.. _Unlicense
: http://unlicense.org
.. _icdiff
: https://www.jefftk.com/icdiff
.. _pprintpp
: https://github.com/wolever/pprintpp
0.3 (2020-01-28)
* Disable colorization in sync with Pytest
(`PR #12 <https://github.com/hjwp/pytest-icdiff/pull/12>`__).
* Synchronize license in `setup.py` with LICENSE file
(`PR #11 <https://github.com/hjwp/pytest-icdiff/pull/11>`__).
* Show expression drill down small numbers
(`Issue #5 <https://github.com/hjwp/pytest-icdiff/issues/5>`__).
* Test with Python 3.8
(`PR #15 <https://github.com/hjwp/pytest-icdiff/issues/15>`__).
0.2 (2019-03-28)
0.0.4 (2018-08-26)
* Fix for short expressions
(`Issue #6 <https://github.com/hjwp/pytest-icdiff/issues/6>`__).
0.0.3 (2018-08-10)
PR #2 <https://github.com/hjwp/pytest-icdiff/pull/2>
__).Issue #3 <https://github.com/hjwp/pytest-icdiff/issues/3>
__).Issue #4 <https://github.com/hjwp/pytest-icdiff/issues/4>
__).0.0.2 (2018-08-08)
* Fix Travis link in README.
0.0.1 (2018-08-08)
FAQs
use icdiff for better error messages in pytest assertions
We found that pytest-icdiff demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.