Check conftest.py loading when directory casing is wrong (#5792).
(pytester: Pytester)
| 332 | reason="only relevant for case insensitive file systems", |
| 333 | ) |
| 334 | def test_conftest_badcase(pytester: Pytester) -> None: |
| 335 | """Check conftest.py loading when directory casing is wrong (#5792).""" |
| 336 | pytester.path.joinpath("JenkinsRoot/test").mkdir(parents=True) |
| 337 | source = {"setup.py": "", "test/__init__.py": "", "test/conftest.py": ""} |
| 338 | pytester.makepyfile(**{"JenkinsRoot/%s" % k: v for k, v in source.items()}) |
| 339 | |
| 340 | os.chdir(pytester.path.joinpath("jenkinsroot/test")) |
| 341 | result = pytester.runpytest() |
| 342 | assert result.ret == ExitCode.NO_TESTS_COLLECTED |
| 343 | |
| 344 | |
| 345 | def test_conftest_uppercase(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected