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

Method test_dict_nonnumeric

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

Source from the content-addressed store, hash-verified

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})
613 assert {"a": 1.0, "b": 1} != pytest.approx({"a": 1.0, "b": None})
614
615 def test_dict_vs_other(self):
616 assert 1 != approx({"a": 0})

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected