MCPcopy Index your code
hub / github.com/python/mypy / test_parse_invalid_case

Method test_parse_invalid_case

mypy/test/meta/test_parse_data.py:15–25  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

13
14class ParseTestDataSuite(Suite):
15 def test_parse_invalid_case(self) -> None:
16 # Act
17 result = _run_pytest("""
18 [case abc]
19 s: str
20 [case foo-XFAIL]
21 s: str
22 """)
23
24 # Assert
25 assert "Invalid testcase id 'foo-XFAIL'" in result.stdout
26
27 def test_parse_invalid_section(self) -> None:
28 # Act

Callers

nothing calls this directly

Calls 1

_run_pytestFunction · 0.85

Tested by

no test coverage detected