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

Function run_and_parse

testing/test_junitxml.py:65–72  ·  view source on GitHub ↗

Fixture that returns a function that can be used to execute pytest and return the parsed ``DomNode`` of the root xml node. The ``family`` parameter is used to configure the ``junit_family`` of the written report. "xunit2" is also automatically validated against the schema.

(pytester: Pytester, schema: xmlschema.XMLSchema)

Source from the content-addressed store, hash-verified

63
64@pytest.fixture
65def run_and_parse(pytester: Pytester, schema: xmlschema.XMLSchema) -> RunAndParse:
66 """Fixture that returns a function that can be used to execute pytest and
67 return the parsed ``DomNode`` of the root xml node.
68
69 The ``family`` parameter is used to configure the ``junit_family`` of the written report.
70 "xunit2" is also automatically validated against the schema.
71 """
72 return RunAndParse(pytester, schema)
73
74
75def assert_attr(node: minidom.Element, **kwargs: object) -> None:

Calls 1

RunAndParseClass · 0.85

Tested by

no test coverage detected