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

Method test_toml_config_names

testing/test_config.py:154–165  ·  view source on GitHub ↗
(self, pytester: Pytester, name: str)

Source from the content-addressed store, hash-verified

152
153 @pytest.mark.parametrize("name", ["pytest.toml", ".pytest.toml"])
154 def test_toml_config_names(self, pytester: Pytester, name: str) -> None:
155 pytester.path.joinpath(name).write_text(
156 textwrap.dedent(
157 """
158 [pytest]
159 minversion = "3.36"
160 """
161 ),
162 encoding="utf-8",
163 )
164 config = pytester.parseconfig()
165 assert config.getini("minversion") == "3.36"
166
167 def test_pyproject_toml(self, pytester: Pytester) -> None:
168 pyproject_toml = pytester.makepyprojecttoml(

Callers

nothing calls this directly

Calls 3

write_textMethod · 0.80
parseconfigMethod · 0.45
getiniMethod · 0.45

Tested by

no test coverage detected