MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_dict_omitting

Method test_dict_omitting

testing/test_assertion.py:591–597  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

589 assert len(expl) > 1
590
591 def test_dict_omitting(self) -> None:
592 lines = callequal({"a": 0, "b": 1}, {"a": 1, "b": 1})
593 assert lines is not None
594 assert lines[1].startswith("Omitting 1 identical item")
595 assert "Common items" not in lines
596 for line in lines[1:]:
597 assert "b" not in line
598
599 def test_dict_omitting_with_verbosity_1(self) -> None:
600 """Ensure differing items are visible for verbosity=1 (#1512)."""

Callers

nothing calls this directly

Calls 1

callequalFunction · 0.85

Tested by

no test coverage detected