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

Function run_and_parse

testing/test_junitxml.py:55–62  ·  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

53
54@pytest.fixture
55def run_and_parse(pytester: Pytester, schema: xmlschema.XMLSchema) -> RunAndParse:
56 """Fixture that returns a function that can be used to execute pytest and
57 return the parsed ``DomNode`` of the root xml node.
58
59 The ``family`` parameter is used to configure the ``junit_family`` of the written report.
60 "xunit2" is also automatically validated against the schema.
61 """
62 return RunAndParse(pytester, schema)
63
64
65def assert_attr(node, **kwargs):

Calls 1

RunAndParseClass · 0.85

Tested by

no test coverage detected