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

Function test_double_colon_split_method_issue469

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

Source from the content-addressed store, hash-verified

1160
1161
1162def test_double_colon_split_method_issue469(
1163 pytester: Pytester, run_and_parse: RunAndParse
1164) -> None:
1165 pytester.makepyfile(
1166 """
1167 import pytest
1168 class TestClass(object):
1169 @pytest.mark.parametrize('param', ["double::colon"])
1170 def test_func(self, param):
1171 pass
1172 """
1173 )
1174 result, dom = run_and_parse()
1175 assert result.ret == 0
1176 node = dom.find_first_by_tag("testcase")
1177 node.assert_attr(classname="test_double_colon_split_method_issue469.TestClass")
1178 node.assert_attr(name="test_func[double::colon]")
1179
1180
1181def test_unicode_issue368(pytester: Pytester) -> None:

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