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

Function test_assertion_options

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

Source from the content-addressed store, hash-verified

1354
1355
1356def test_assertion_options(pytester: Pytester) -> None:
1357 pytester.makepyfile(
1358 """
1359 def test_hello():
1360 x = 3
1361 assert x == 4
1362 """
1363 )
1364 result = pytester.runpytest()
1365 assert "3 == 4" in result.stdout.str()
1366 result = pytester.runpytest_subprocess("--assert=plain")
1367 result.stdout.no_fnmatch_line("*3 == 4*")
1368
1369
1370def test_triple_quoted_string_issue113(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 5

strMethod · 0.80
no_fnmatch_lineMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45
runpytest_subprocessMethod · 0.45

Tested by

no test coverage detected