|
1 | 1 | from dataclasses import replace
|
2 |
| -from typing import Any, Iterator, List |
| 2 | +from typing import Any, Iterator |
3 | 3 | from unittest.mock import patch
|
4 | 4 |
|
5 | 5 | import pytest
|
|
14 | 14 | all_data_cases,
|
15 | 15 | )
|
16 | 16 |
|
17 |
| -SOURCES: List[str] = [ |
18 |
| - "src/black/__init__.py", |
19 |
| - "src/black/__main__.py", |
20 |
| - "src/black/brackets.py", |
21 |
| - "src/black/cache.py", |
22 |
| - "src/black/comments.py", |
23 |
| - "src/black/concurrency.py", |
24 |
| - "src/black/const.py", |
25 |
| - "src/black/debug.py", |
26 |
| - "src/black/files.py", |
27 |
| - "src/black/linegen.py", |
28 |
| - "src/black/lines.py", |
29 |
| - "src/black/mode.py", |
30 |
| - "src/black/nodes.py", |
31 |
| - "src/black/numerics.py", |
32 |
| - "src/black/output.py", |
33 |
| - "src/black/parsing.py", |
34 |
| - "src/black/report.py", |
35 |
| - "src/black/rusty.py", |
36 |
| - "src/black/strings.py", |
37 |
| - "src/black/trans.py", |
38 |
| - "src/blackd/__init__.py", |
39 |
| - "src/blib2to3/pygram.py", |
40 |
| - "src/blib2to3/pytree.py", |
41 |
| - "src/blib2to3/pgen2/conv.py", |
42 |
| - "src/blib2to3/pgen2/driver.py", |
43 |
| - "src/blib2to3/pgen2/grammar.py", |
44 |
| - "src/blib2to3/pgen2/literals.py", |
45 |
| - "src/blib2to3/pgen2/parse.py", |
46 |
| - "src/blib2to3/pgen2/pgen.py", |
47 |
| - "src/blib2to3/pgen2/tokenize.py", |
48 |
| - "src/blib2to3/pgen2/token.py", |
49 |
| - "setup.py", |
50 |
| - "tests/test_black.py", |
51 |
| - "tests/test_blackd.py", |
52 |
| - "tests/test_format.py", |
53 |
| - "tests/optional.py", |
54 |
| - "tests/util.py", |
55 |
| - "tests/conftest.py", |
56 |
| -] |
57 |
| - |
58 | 17 |
|
59 | 18 | @pytest.fixture(autouse=True)
|
60 | 19 | def patch_dump_to_file(request: Any) -> Iterator[None]:
|
@@ -93,11 +52,6 @@ def test_preview_minimum_python_310_format(filename: str) -> None:
|
93 | 52 | assert_format(source, expected, mode, minimum_version=(3, 10))
|
94 | 53 |
|
95 | 54 |
|
96 |
| -@pytest.mark.parametrize("filename", SOURCES) |
97 |
| -def test_source_is_formatted(filename: str) -> None: |
98 |
| - check_file("", filename, DEFAULT_MODE, data=False) |
99 |
| - |
100 |
| - |
101 | 55 | # =============== #
|
102 | 56 | # Complex cases
|
103 | 57 | # ============= #
|
|
0 commit comments