|
14 | 14 | from git.types import PathLike
|
15 | 15 |
|
16 | 16 |
|
17 |
| -# fmt: off |
18 |
| -@pytest.mark.parametrize('paths, path, expected_result', [ |
19 |
| - ((Path("foo"),), Path("foo"), True), |
20 |
| - ((Path("foo"),), Path("foo/bar"), True), |
21 |
| - ((Path("foo/bar"),), Path("foo"), False), |
22 |
| - ((Path("foo"), Path("bar")), Path("foo"), True), |
23 |
| -]) |
24 |
| -# fmt: on |
| 17 | +@pytest.mark.parametrize( |
| 18 | + "paths, path, expected_result", |
| 19 | + [ |
| 20 | + ((Path("foo"),), Path("foo"), True), |
| 21 | + ((Path("foo"),), Path("foo/bar"), True), |
| 22 | + ((Path("foo/bar"),), Path("foo"), False), |
| 23 | + ((Path("foo"), Path("bar")), Path("foo"), True), |
| 24 | + ], |
| 25 | +) |
25 | 26 | def test_blob_filter(paths: Sequence[PathLike], path: PathLike, expected_result: bool) -> None:
|
26 | 27 | """Test the blob filter."""
|
27 | 28 | blob_filter = BlobFilter(paths)
|
|
0 commit comments