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

Method test_fmt_and

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

Source from the content-addressed store, hash-verified

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", "}"])
1073 res = "\n".join(["assert 1 == 2", " + where 1 = foo", " + and 2 = bar"])
1074 assert util.format_explanation(expl) == res
1075
1076 def test_fmt_where_nested(self) -> None:
1077 expl = "\n".join(["assert 1", "{1 = foo", "{foo = bar", "}", "} == 2"])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected