(self, pytester: Pytester, name, section)
| 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: |
nothing calls this directly
no test coverage detected