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

Method test_empty_pyproject_toml

testing/test_config.py:178–182  ·  view source on GitHub ↗

An empty pyproject.toml is considered as config if no other option is found.

(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

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."""
180 pyproject_toml = pytester.makepyprojecttoml("")
181 config = pytester.parseconfig()
182 assert config.inipath == pyproject_toml
183
184 def test_empty_pyproject_toml_found_many(self, pytester: Pytester) -> None:
185 """

Callers

nothing calls this directly

Calls 2

makepyprojecttomlMethod · 0.45
parseconfigMethod · 0.45

Tested by

no test coverage detected