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

Method test_pytest_ini

testing/test_findpaths.py:18–22  ·  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

16 assert load_config_dict_from_file(fn) == {}
17
18 def test_pytest_ini(self, tmp_path: Path) -> None:
19 """[pytest] section in pytest.ini files is read correctly"""
20 fn = tmp_path / "pytest.ini"
21 fn.write_text("[pytest]\nx=1", encoding="utf-8")
22 assert load_config_dict_from_file(fn) == {"x": "1"}
23
24 def test_custom_ini(self, tmp_path: Path) -> None:
25 """[pytest] section in any .ini file is read correctly"""

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected