diff options
author | Austin Scola <austinscola@gmail.com> | 2022-07-01 08:19:07 -0400 |
---|---|---|
committer | Austin Scola <austinscola@gmail.com> | 2022-07-01 08:19:07 -0400 |
commit | da59d7481668a7133eebcd12b4d5ecfb655296a6 (patch) | |
tree | a1217b16a71adf227e7bb28a24fead1bdfbdd928 | |
parent | ed45d5b3c3d4e2d4520221037b40288dc85e428c (diff) | |
download | gitpython-da59d7481668a7133eebcd12b4d5ecfb655296a6.tar.gz |
Remove stage type as parameter from blob filter test
-rw-r--r-- | test/test_blob_filter.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/test/test_blob_filter.py b/test/test_blob_filter.py index a8cd0c9c..cbaa30b8 100644 --- a/test/test_blob_filter.py +++ b/test/test_blob_filter.py @@ -11,18 +11,19 @@ from git.types import PathLike # fmt: off -@pytest.mark.parametrize('paths, stage_type, path, expected_result', [ - ((Path("foo"),), 0, Path("foo"), True), - ((Path("foo"),), 0, Path("foo/bar"), True), - ((Path("foo/bar"),), 0, Path("foo"), False), - ((Path("foo"), Path("bar")), 0, Path("foo"), True), +@pytest.mark.parametrize('paths, path, expected_result', [ + ((Path("foo"),), Path("foo"), True), + ((Path("foo"),), Path("foo/bar"), True), + ((Path("foo/bar"),), Path("foo"), False), + ((Path("foo"), Path("bar")), Path("foo"), True), ]) # fmt: on -def test_blob_filter(paths: Sequence[PathLike], stage_type: StageType, path: PathLike, expected_result: bool) -> None: +def test_blob_filter(paths: Sequence[PathLike], path: PathLike, expected_result: bool) -> None: """Test the blob filter.""" blob_filter = BlobFilter(paths) binsha = MagicMock(__len__=lambda self: 20) + stage_type: StageType = 0 blob: Blob = Blob(repo=MagicMock(), binsha=binsha, path=path) stage_blob: Tuple[StageType, Blob] = (stage_type, blob) |