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

Method test_simple_case

testing/test_assertrewrite.py:1267–1275  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

1265
1266class TestIssue925:
1267 def test_simple_case(self, pytester: Pytester) -> None:
1268 pytester.makepyfile(
1269 """
1270 def test_ternary_display():
1271 assert (False == False) == False
1272 """
1273 )
1274 result = pytester.runpytest()
1275 result.stdout.fnmatch_lines(["*E*assert (False == False) == False"])
1276
1277 def test_long_case(self, pytester: Pytester) -> None:
1278 pytester.makepyfile(

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected