(self, pytester: Pytester, name: str)
| 152 | |
| 153 | @pytest.mark.parametrize("name", ["pytest.toml", ".pytest.toml"]) |
| 154 | def test_toml_config_names(self, pytester: Pytester, name: str) -> None: |
| 155 | pytester.path.joinpath(name).write_text( |
| 156 | textwrap.dedent( |
| 157 | """ |
| 158 | [pytest] |
| 159 | minversion = "3.36" |
| 160 | """ |
| 161 | ), |
| 162 | encoding="utf-8", |
| 163 | ) |
| 164 | config = pytester.parseconfig() |
| 165 | assert config.getini("minversion") == "3.36" |
| 166 | |
| 167 | def test_pyproject_toml(self, pytester: Pytester) -> None: |
| 168 | pyproject_toml = pytester.makepyprojecttoml( |
nothing calls this directly
no test coverage detected