(self)
| 2333 | assert_collected_sources([target], expected, ctx=ctx) |
| 2334 | |
| 2335 | def test_empty_include(self) -> None: |
| 2336 | path = DATA_DIR / "include_exclude_tests" |
| 2337 | src = [path] |
| 2338 | expected = [ |
| 2339 | Path(path / "b/exclude/a.pie"), |
| 2340 | Path(path / "b/exclude/a.py"), |
| 2341 | Path(path / "b/exclude/a.pyi"), |
| 2342 | Path(path / "b/dont_exclude/a.pie"), |
| 2343 | Path(path / "b/dont_exclude/a.py"), |
| 2344 | Path(path / "b/dont_exclude/a.pyi"), |
| 2345 | Path(path / "b/.definitely_exclude/a.pie"), |
| 2346 | Path(path / "b/.definitely_exclude/a.py"), |
| 2347 | Path(path / "b/.definitely_exclude/a.pyi"), |
| 2348 | Path(path / ".gitignore"), |
| 2349 | Path(path / "pyproject.toml"), |
| 2350 | ] |
| 2351 | # Setting exclude explicitly to an empty string to block .gitignore usage. |
| 2352 | assert_collected_sources(src, expected, include="", exclude="") |
| 2353 | |
| 2354 | def test_extend_exclude(self) -> None: |
| 2355 | path = DATA_DIR / "include_exclude_tests" |
nothing calls this directly
no test coverage detected