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

Method test_pytest_ini

testing/test_findpaths.py:25–31  ·  view source on GitHub ↗

[pytest] section in pytest.ini files is read correctly

(self, tmp_path: Path)

Source from the content-addressed store, hash-verified

23 assert load_config_dict_from_file(fn) == {}
24
25 def test_pytest_ini(self, tmp_path: Path) -> None:
26 """[pytest] section in pytest.ini files is read correctly"""
27 fn = tmp_path / "pytest.ini"
28 fn.write_text("[pytest]\nx=1", encoding="utf-8")
29 assert load_config_dict_from_file(fn) == {
30 "x": ConfigValue("1", origin="file", mode="ini")
31 }
32
33 def test_custom_ini(self, tmp_path: Path) -> None:
34 """[pytest] section in any .ini file is read correctly"""

Callers

nothing calls this directly

Calls 3

ConfigValueClass · 0.90
write_textMethod · 0.80

Tested by

no test coverage detected