MCPcopy Create free account
hub / github.com/psf/black / test_extend_exclude

Method test_extend_exclude

tests/test_black.py:2354–2363  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2352 assert_collected_sources(src, expected, include="", exclude="")
2353
2354 def test_extend_exclude(self) -> None:
2355 path = DATA_DIR / "include_exclude_tests"
2356 src = [path]
2357 expected = [
2358 Path(path / "b/exclude/a.py"),
2359 Path(path / "b/dont_exclude/a.py"),
2360 ]
2361 assert_collected_sources(
2362 src, expected, exclude=r"\.pyi$", extend_exclude=r"\.definitely_exclude"
2363 )
2364
2365 @pytest.mark.incompatible_with_mypyc
2366 def test_symlink_out_of_root_directory(self) -> None:

Callers

nothing calls this directly

Calls 1

assert_collected_sourcesFunction · 0.85

Tested by

no test coverage detected