pytest-icdiff icon indicating copy to clipboard operation
pytest-icdiff copied to clipboard

better error messages for assert equals in pytest

Results 10 pytest-icdiff issues
Sort by recently updated
recently updated
newest added

Some libs like `graphene` in my case return OrderedDicts istead of normal dicts. I have assert like this: ``` assert result.data == { 'campaign': { 'categories': [ {'name': 'suggested', 'description':...

https://github.com/panyanyany/beeprint

pytest-icdiff is awesome. ## Problem When testing small dicts it returns the full diff, but on big structures it only returns those parts that differ (see #25). Sometimes (in the...

I'm writing the output of of my tests to a log file that is visualized on a website. The UI does not support color so I'm running: ``` pytest ......

Hi there, would be possible to get a better diff for multiline strings? Right now it prints the "\n", which is not ideal, example here:

I have found that in certain CI environments (CircleCI), terminal width is reported as zero, which seems to cause pytest-icdiff to hang (stops producing output and does not exit) when...

When a [`pytest.approx`](https://docs.pytest.org/en/7.1.x/reference/reference.html#pytest-approx) with a list of values is failing, current pretty-print is not super readable compared to simple lists: ```py import pytest def test_approx(): assert pytest.approx([100, 100, 100], abs=1)...

The diff shows indent and coma diff, which useless. ![image](https://user-images.githubusercontent.com/479441/160856409-d6cc4dcf-9a21-46a4-98ed-cf10ab7b1465.png) ![image](https://user-images.githubusercontent.com/479441/160856877-9609e4ae-3ba3-449b-b4dd-fecbde960576.png)

The latest release is 0.5, yet [HISTORY.rst](https://github.com/hjwp/pytest-icdiff/blob/master/HISTORY.rst) only documents releases up to 0.3.

while the diffs are super helpful, it looks like it loses the very handy drill-down features: ``` def test_a(): assert len([1, 2, 3]) == len([1, 2]) ``` without plugin ```...

help wanted