MCPcopy
hub / github.com/pytest-dev/pytest / test_hostname_in_xml

Method test_hostname_in_xml

testing/test_junitxml.py:264–275  ·  view source on GitHub ↗
(
        self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str
    )

Source from the content-addressed store, hash-verified

262
263 @parametrize_families
264 def test_hostname_in_xml(
265 self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str
266 ) -> None:
267 pytester.makepyfile(
268 """
269 def test_pass():
270 pass
271 """
272 )
273 _result, dom = run_and_parse(family=xunit_family)
274 node = dom.get_first_by_tag("testsuite")
275 node.assert_attr(hostname=platform.node())
276
277 @parametrize_families
278 def test_timestamp_in_xml(

Callers

nothing calls this directly

Calls 5

run_and_parseFunction · 0.85
get_first_by_tagMethod · 0.80
assert_attrMethod · 0.80
makepyfileMethod · 0.45
nodeMethod · 0.45

Tested by

no test coverage detected