@@ -51,13 +51,13 @@ def test_catch_all(matcher_blob, thing_to_match):
51
51
[
52
52
(None , [], True ), # Empty filenames and no blob
53
53
(None , ["main.py" ], True ), # Empty blob should match
54
- (".py" , ["main.py" ], True ), # Extension match
54
+ ("* .py" , ["main.py" ], True ), # Extension match
55
55
("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
57
57
("main.py" , ["main.py" , "test.py" ], True ), # Full name match
58
58
("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
61
61
],
62
62
)
63
63
def test_file_matcher (
@@ -89,13 +89,13 @@ def test_file_matcher(
89
89
[
90
90
(None , [], True ), # Empty filenames and no blob
91
91
(None , ["main.py" ], True ), # Empty blob should match
92
- (".py" , ["main.py" ], True ), # Extension match
92
+ ("* .py" , ["main.py" ], True ), # Extension match
93
93
("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
95
95
("main.py" , ["main.py" , "test.py" ], True ), # Full name match
96
96
("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
99
99
],
100
100
)
101
101
@pytest .mark .parametrize (
0 commit comments