MCPcopy
hub / github.com/pytest-dev/pytest / test_reprcompare_verbose_long

Function test_reprcompare_verbose_long

testing/test_assertion.py:2228–2240  ·  testing/test_assertion.py::test_reprcompare_verbose_long
()

Source from the content-addressed store, hash-verified

2226
2227
2228def test_reprcompare_verbose_long() -> None:
2229 a = {fclass="st">"v{i}": i for i in range(11)}
2230 b = a.copy()
2231 b[class="st">"v2"] += 10
2232 lines = callop(class="st">"==", a, b, verbose=2)
2233 assert lines is not None
2234 assert lines[0] == (
2235 class="st">"{&class="cm">#x27;v0': 0, 'v1': 1, 'v2': 2, 'v3': 3, 'v4': 4, 'v5': 5, "
2236 class="st">"&class="cm">#x27;v6': 6, 'v7': 7, 'v8': 8, 'v9': 9, 'v10': 10}"
2237 class="st">" == "
2238 class="st">"{&class="cm">#x27;v0': 0, 'v1': 1, 'v2': 12, 'v3': 3, 'v4': 4, 'v5': 5, "
2239 class="st">"&class="cm">#x27;v6': 6, 'v7': 7, 'v8': 8, 'v9': 9, 'v10': 10}"
2240 )
2241
2242
2243@pytest.mark.parametrize(class="st">"enable_colors", [True, False])

Callers

nothing calls this directly

Calls 2

callopFunction · 0.85
copyMethod · 0.80

Tested by

no test coverage detected