Skip to content

Commit 32c19bf

Browse files
spacemanspiff2007cknd
authored andcommitted
added negative tests
1 parent 5bce5e2 commit 32c19bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_utils.py

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
def test_match():
77
assert match('my/ignored/path', None) is False
8+
assert match('my/ignored/path', ['not']) is False
9+
assert match('my/ignored/path', [re.compile('not ignored')]) is False
10+
811
assert match('my/ignored/path', 'ignored')
912
assert match('my/ignored/path', ['not', 'ignored'])
1013
assert match('my/ignored/path', [re.compile('not ignored'), re.compile('ignored')])

0 commit comments

Comments
 (0)