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

Function test_runs_twice

testing/test_junitxml.py:1381–1392  ·  view source on GitHub ↗
(pytester: Pytester, run_and_parse: RunAndParse)

Source from the content-addressed store, hash-verified

1379
1380
1381def test_runs_twice(pytester: Pytester, run_and_parse: RunAndParse) -> None:
1382 f = pytester.makepyfile(
1383 """
1384 def test_pass():
1385 pass
1386 """
1387 )
1388
1389 result, dom = run_and_parse(f, f)
1390 result.stdout.no_fnmatch_line("*INTERNALERROR*")
1391 first, second = (x["classname"] for x in dom.find_by_tag("testcase"))
1392 assert first == second
1393
1394
1395def test_runs_twice_xdist(

Callers

nothing calls this directly

Calls 4

run_and_parseFunction · 0.85
no_fnmatch_lineMethod · 0.80
find_by_tagMethod · 0.80
makepyfileMethod · 0.45

Tested by

no test coverage detected