@@ -51,13 +51,13 @@ def test_catch_all(matcher_blob, thing_to_match):
5151 [
5252 (None , [], True ), # Empty filenames and no blob
5353 (None , ["main.py" ], True ), # Empty blob should match
54- (".py" , ["main.py" ], True ), # Extension match
54+ ("* .py" , ["main.py" ], True ), # Extension match
5555 ("main.py" , ["main.py" ], True ), # Full name match
56- (".py" , ["main.py" , "test.py" ], True ), # Extension match
56+ ("* .py" , ["main.py" , "test.py" ], True ), # Extension match
5757 ("main.py" , ["main.py" , "test.py" ], True ), # Full name match
5858 ("main.py" , ["test.py" ], False ), # Full name no match
59- (".js" , ["main.py" , "test.py" ], False ), # Extension no match
60- (".ts" , ["main.tsx" , "test.tsx" ], False ), # Extension no match
59+ ("* .js" , ["main.py" , "test.py" ], False ), # Extension no match
60+ ("* .ts" , ["main.tsx" , "test.tsx" ], False ), # Extension no match
6161 ],
6262)
6363def test_file_matcher (
@@ -89,13 +89,13 @@ def test_file_matcher(
8989 [
9090 (None , [], True ), # Empty filenames and no blob
9191 (None , ["main.py" ], True ), # Empty blob should match
92- (".py" , ["main.py" ], True ), # Extension match
92+ ("* .py" , ["main.py" ], True ), # Extension match
9393 ("main.py" , ["main.py" ], True ), # Full name match
94- (".py" , ["main.py" , "test.py" ], True ), # Extension match
94+ ("* .py" , ["main.py" , "test.py" ], True ), # Extension match
9595 ("main.py" , ["main.py" , "test.py" ], True ), # Full name match
9696 ("main.py" , ["test.py" ], False ), # Full name no match
97- (".js" , ["main.py" , "test.py" ], False ), # Extension no match
98- (".ts" , ["main.tsx" , "test.tsx" ], False ), # Extension no match
97+ ("* .js" , ["main.py" , "test.py" ], False ), # Extension no match
98+ ("* .ts" , ["main.tsx" , "test.tsx" ], False ), # Extension no match
9999 ],
100100)
101101@pytest .mark .parametrize (
0 commit comments