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

Method test_pytest_toml

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

Source from the content-addressed store, hash-verified

198 assert config.inipath == pytester.path / "foo/bar/pyproject.toml"
199
200 def test_pytest_toml(self, pytester: Pytester) -> None:
201 pytest_toml = pytester.path.joinpath("pytest.toml")
202 pytest_toml = pytester.maketoml(
203 """
204 [pytest]
205 minversion = "1.0"
206 """
207 )
208 config = pytester.parseconfig()
209 assert config.inipath == pytest_toml
210 assert config.getini("minversion") == "1.0"
211
212 @pytest.mark.parametrize("name", ["pytest.toml", ".pytest.toml"])
213 def test_empty_pytest_toml(self, pytester: Pytester, name: str) -> None:

Callers

nothing calls this directly

Calls 3

maketomlMethod · 0.80
parseconfigMethod · 0.45
getiniMethod · 0.45

Tested by

no test coverage detected