| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ed45d5b commit da59d74
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,18 +11,19 @@ | |||
| 11 | 11 | ||
| 12 | 12 | ||
| 13 | 13 | # fmt: off | |
| 14 | - @pytest.mark.parametrize('paths, stage_type, path, expected_result', [ | ||
| 15 | - ((Path("foo"),), 0, Path("foo"), True), | ||
| 16 | - ((Path("foo"),), 0, Path("foo/bar"), True), | ||
| 17 | - ((Path("foo/bar"),), 0, Path("foo"), False), | ||
| 18 | - ((Path("foo"), Path("bar")), 0, Path("foo"), True), | ||
| 14 | + @pytest.mark.parametrize('paths, path, expected_result', [ | ||
| 15 | + ((Path("foo"),), Path("foo"), True), | ||
| 16 | + ((Path("foo"),), Path("foo/bar"), True), | ||
| 17 | + ((Path("foo/bar"),), Path("foo"), False), | ||
| 18 | + ((Path("foo"), Path("bar")), Path("foo"), True), | ||
| 19 | 19 | ]) | |
| 20 | 20 | # fmt: on | |
| 21 | - def test_blob_filter(paths: Sequence[PathLike], stage_type: StageType, path: PathLike, expected_result: bool) -> None: | ||
| 21 | + def test_blob_filter(paths: Sequence[PathLike], path: PathLike, expected_result: bool) -> None: | ||
| 22 | 22 | """Test the blob filter.""" | |
| 23 | 23 | blob_filter = BlobFilter(paths) | |
| 24 | 24 | ||
| 25 | 25 | binsha = MagicMock(__len__=lambda self: 20) | |
| 26 | + stage_type: StageType = 0 | ||
| 26 | 27 | blob: Blob = Blob(repo=MagicMock(), binsha=binsha, path=path) | |
| 27 | 28 | stage_blob: Tuple[StageType, Blob] = (stage_type, blob) | |
| 28 | 29 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments