| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b438c45 commit 4e91a6c
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,14 +14,15 @@ | |||
| 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) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments