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

Function test_recursion_source_decode

testing/test_assertion.py:1501–1519  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

1499
1500
1501def test_recursion_source_decode(pytester: Pytester) -> None:
1502 pytester.makepyfile(
1503 """
1504 def test_something():
1505 pass
1506 """
1507 )
1508 pytester.makeini(
1509 """
1510 [pytest]
1511 python_files = *.py
1512 """
1513 )
1514 result = pytester.runpytest("--collect-only")
1515 result.stdout.fnmatch_lines(
1516 """
1517 <Module*>
1518 """
1519 )
1520
1521
1522def test_AssertionError_message(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 4

fnmatch_linesMethod · 0.80
makepyfileMethod · 0.45
makeiniMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected