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

Method test_ini_parse_error

testing/test_config.py:162–166  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

160 assert config.getini("minversion") == "2.0"
161
162 def test_ini_parse_error(self, pytester: Pytester) -> None:
163 pytester.path.joinpath("pytest.ini").write_text("addopts = -x")
164 result = pytester.runpytest()
165 assert result.ret != 0
166 result.stderr.fnmatch_lines(["ERROR: *pytest.ini:1: no section header defined"])
167
168 @pytest.mark.xfail(reason="probably not needed")
169 def test_confcutdir(self, pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 2

fnmatch_linesMethod · 0.80
runpytestMethod · 0.45

Tested by

no test coverage detected