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

Method test_pyproject_toml

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

Source from the content-addressed store, hash-verified

165 assert config.getini("minversion") == "3.36"
166
167 def test_pyproject_toml(self, pytester: Pytester) -> None:
168 pyproject_toml = pytester.makepyprojecttoml(
169 """
170 [tool.pytest.ini_options]
171 minversion = "1.0"
172 """
173 )
174 config = pytester.parseconfig()
175 assert config.inipath == pyproject_toml
176 assert config.getini("minversion") == "1.0"
177
178 def test_empty_pyproject_toml(self, pytester: Pytester) -> None:
179 """An empty pyproject.toml is considered as config if no other option is found."""

Callers

nothing calls this directly

Calls 3

makepyprojecttomlMethod · 0.45
parseconfigMethod · 0.45
getiniMethod · 0.45

Tested by

no test coverage detected