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

Method test_hostname_in_xml

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

Source from the content-addressed store, hash-verified

197
198 @parametrize_families
199 def test_hostname_in_xml(
200 self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str
201 ) -> None:
202 pytester.makepyfile(
203 """
204 def test_pass():
205 pass
206 """
207 )
208 result, dom = run_and_parse(family=xunit_family)
209 node = dom.find_first_by_tag("testsuite")
210 node.assert_attr(hostname=platform.node())
211
212 @parametrize_families
213 def test_timestamp_in_xml(

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected