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

Method test_fmt_where

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

Source from the content-addressed store, hash-verified

1064 assert util.format_explanation(expl) == "assert foo"
1065
1066 def test_fmt_where(self) -> None:
1067 expl = "\n".join(["assert 1", "{1 = foo", "} == 2"])
1068 res = "\n".join(["assert 1 == 2", " + where 1 = foo"])
1069 assert util.format_explanation(expl) == res
1070
1071 def test_fmt_and(self) -> None:
1072 expl = "\n".join(["assert 1", "{1 = foo", "} == 2", "{2 = bar", "}"])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected