MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_ini_names

Method test_ini_names

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

Source from the content-addressed store, hash-verified

115 [("tool:pytest", "setup.cfg"), ("pytest", "tox.ini"), ("pytest", "pytest.ini")],
116 )
117 def test_ini_names(self, pytester: Pytester, name, section) -> None:
118 pytester.path.joinpath(name).write_text(
119 textwrap.dedent(
120 """
121 [{section}]
122 minversion = 1.0
123 """.format(
124 section=section
125 )
126 )
127 )
128 config = pytester.parseconfig()
129 assert config.getini("minversion") == "1.0"
130
131 def test_pyproject_toml(self, pytester: Pytester) -> None:
132 pytester.makepyprojecttoml(

Callers

nothing calls this directly

Calls 3

formatMethod · 0.45
parseconfigMethod · 0.45
getiniMethod · 0.45

Tested by

no test coverage detected