Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitda59d74

Browse files
committed
Remove stage type as parameter from blob filter test
1 parented45d5b commitda59d74

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

‎test/test_blob_filter.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,19 @@
1111

1212

1313
# 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),
1919
])
2020
# fmt: on
21-
deftest_blob_filter(paths:Sequence[PathLike],stage_type:StageType,path:PathLike,expected_result:bool)->None:
21+
deftest_blob_filter(paths:Sequence[PathLike],path:PathLike,expected_result:bool)->None:
2222
"""Test the blob filter."""
2323
blob_filter=BlobFilter(paths)
2424

2525
binsha=MagicMock(__len__=lambdaself:20)
26+
stage_type:StageType=0
2627
blob:Blob=Blob(repo=MagicMock(),binsha=binsha,path=path)
2728
stage_blob:Tuple[StageType,Blob]= (stage_type,blob)
2829

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp