Update testing/test_config.py

This commit is contained in:
Bruno Oliveira 2024-02-14 15:54:27 -03:00 committed by GitHub
parent b5999191aa
commit 7b4fbc33b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ class TestParseIni:
assert config.inipath == pytester.path / "foo/bar/pyproject.toml"
def test_pytest_ini_trumps_pyproject_toml(self, pytester: Pytester) -> None:
"""An empty pyproject.toml is considered as config if no other option is found."""
"""A pytest.ini always take precedence over a pyproject.toml file."""
pytester.makepyprojecttoml("[tool.pytest.ini_options]")
pytest_ini = pytester.makefile(".ini", pytest="")
config = pytester.parseconfig()