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

Method test_ini_names

testing/test_config.py:140–151  ·  view source on GitHub ↗
(self, pytester: Pytester, name, section)

Source from the content-addressed store, hash-verified

138 ],
139 )
140 def test_ini_names(self, pytester: Pytester, name, section) -> None:
141 pytester.path.joinpath(name).write_text(
142 textwrap.dedent(
143 f"""
144 [{section}]
145 minversion = 3.36
146 """
147 ),
148 encoding="utf-8",
149 )
150 config = pytester.parseconfig()
151 assert config.getini("minversion") == "3.36"
152
153 @pytest.mark.parametrize("name", ["pytest.toml", ".pytest.toml"])
154 def test_toml_config_names(self, pytester: Pytester, name: str) -> None:

Callers

nothing calls this directly

Calls 3

write_textMethod · 0.80
parseconfigMethod · 0.45
getiniMethod · 0.45

Tested by

no test coverage detected