(self, pytester: Pytester)
| 198 | assert config.inipath == pytester.path / "foo/bar/pyproject.toml" |
| 199 | |
| 200 | def test_pytest_toml(self, pytester: Pytester) -> None: |
| 201 | pytest_toml = pytester.path.joinpath("pytest.toml") |
| 202 | pytest_toml = pytester.maketoml( |
| 203 | """ |
| 204 | [pytest] |
| 205 | minversion = "1.0" |
| 206 | """ |
| 207 | ) |
| 208 | config = pytester.parseconfig() |
| 209 | assert config.inipath == pytest_toml |
| 210 | assert config.getini("minversion") == "1.0" |
| 211 | |
| 212 | @pytest.mark.parametrize("name", ["pytest.toml", ".pytest.toml"]) |
| 213 | def test_empty_pytest_toml(self, pytester: Pytester, name: str) -> None: |
nothing calls this directly
no test coverage detected