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

Method test_dict_wrong_len

testing/python/approx.py:606–609  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

604 assert actual == approx(expected)
605
606 def test_dict_wrong_len(self):
607 assert {"a": 1, "b": 2} != approx({"a": 1})
608 assert {"a": 1, "b": 2} != approx({"a": 1, "c": 2})
609 assert {"a": 1, "b": 2} != approx({"a": 1, "b": 2, "c": 3})
610
611 def test_dict_nonnumeric(self):
612 assert {"a": 1.0, "b": None} == pytest.approx({"a": 1.0, "b": None})

Callers

nothing calls this directly

Calls 1

approxFunction · 0.90

Tested by

no test coverage detected