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

Function test_logxml_check_isdir

testing/test_junitxml.py:1121–1124  ·  view source on GitHub ↗

Give an error if --junit-xml is a directory (#2089)

(pytester: Pytester)

Source from the content-addressed store, hash-verified

1119
1120
1121def test_logxml_check_isdir(pytester: Pytester) -> None:
1122 """Give an error if --junit-xml is a directory (#2089)"""
1123 result = pytester.runpytest("--junit-xml=.")
1124 result.stderr.fnmatch_lines(["*--junitxml must be a filename*"])
1125
1126
1127def test_escaped_parametrized_names_xml(

Callers

nothing calls this directly

Calls 2

fnmatch_linesMethod · 0.80
runpytestMethod · 0.45

Tested by

no test coverage detected