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

Function test_logxml_makedir

testing/test_junitxml.py:1108–1118  ·  view source on GitHub ↗

--junitxml should automatically create directories for the xml file

(pytester: Pytester)

Source from the content-addressed store, hash-verified

1106
1107
1108def test_logxml_makedir(pytester: Pytester) -> None:
1109 """--junitxml should automatically create directories for the xml file"""
1110 pytester.makepyfile(
1111 """
1112 def test_pass():
1113 pass
1114 """
1115 )
1116 result = pytester.runpytest("--junitxml=path/to/results.xml")
1117 assert result.ret == 0
1118 assert pytester.path.joinpath("path/to/results.xml").exists()
1119
1120
1121def test_logxml_check_isdir(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 2

makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected