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

Function test_escaped_skipreason_issue3533

testing/test_junitxml.py:1610–1625  ·  view source on GitHub ↗
(
    pytester: Pytester, run_and_parse: RunAndParse
)

Source from the content-addressed store, hash-verified

1608
1609
1610def test_escaped_skipreason_issue3533(
1611 pytester: Pytester, run_and_parse: RunAndParse
1612) -> None:
1613 pytester.makepyfile(
1614 """
1615 import pytest
1616 @pytest.mark.skip(reason='1 <> 2')
1617 def test_skip():
1618 pass
1619 """
1620 )
1621 _, dom = run_and_parse()
1622 node = dom.find_first_by_tag("testcase")
1623 snode = node.find_first_by_tag("skipped")
1624 assert "1 <> 2" in snode.text
1625 snode.assert_attr(message="1 <> 2")
1626
1627
1628@parametrize_families

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected