MCPcopy
hub / github.com/pytest-dev/pytest / test_toml_parse_error

Method test_toml_parse_error

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

Source from the content-addressed store, hash-verified

315 result.stderr.fnmatch_lines("ERROR: *pytest.ini:1: no section header defined")
316
317 def test_toml_parse_error(self, pytester: Pytester) -> None:
318 pytester.makepyprojecttoml(
319 """
320 \\"
321 """
322 )
323 result = pytester.runpytest()
324 assert result.ret != 0
325 result.stderr.fnmatch_lines("ERROR: *pyproject.toml: Invalid statement*")
326
327 def test_pytest_toml_parse_error(self, pytester: Pytester) -> None:
328 pytester.path.joinpath("pytest.toml").write_text(

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makepyprojecttomlMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected