[pytest] section in pytest.ini files is read correctly
(self, tmp_path: Path)
| 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""" |
nothing calls this directly
no test coverage detected