1
- from sphinx_autobuild .ignore import get_ignore
1
+ from sphinx_autobuild .ignore import Ignore
2
2
3
3
4
4
def test_empty ():
5
- ignored = get_ignore ([], [])
5
+ ignored = Ignore ([], [])
6
6
7
7
assert not ignored ("amazing-file.txt" )
8
8
assert not ignored ("module.pyc" )
@@ -14,7 +14,7 @@ def test_empty():
14
14
15
15
16
16
def test_single_regex ():
17
- ignored = get_ignore ([], [r"\.pyc$" ])
17
+ ignored = Ignore ([], [r"\.pyc$" ])
18
18
19
19
assert not ignored ("amazing-file.txt" )
20
20
assert ignored ("module.pyc" )
@@ -26,7 +26,7 @@ def test_single_regex():
26
26
27
27
28
28
def test_multiple_regex ():
29
- ignored = get_ignore ([], [r"\.md" , r"one\.rst" ])
29
+ ignored = Ignore ([], [r"\.md" , r"one\.rst" ])
30
30
31
31
assert not ignored ("amazing-file.txt" )
32
32
assert not ignored ("module.pyc" )
@@ -38,7 +38,7 @@ def test_multiple_regex():
38
38
39
39
40
40
def test_single_regular ():
41
- ignored = get_ignore (["*.pyc" ], [])
41
+ ignored = Ignore (["*.pyc" ], [])
42
42
43
43
assert not ignored ("amazing-file.txt" )
44
44
assert ignored ("module.pyc" )
@@ -50,7 +50,7 @@ def test_single_regular():
50
50
51
51
52
52
def test_multiple_regular ():
53
- ignored = get_ignore (["bar" , "foo" ], [])
53
+ ignored = Ignore (["bar" , "foo" ], [])
54
54
55
55
assert not ignored ("amazing-file.txt" )
56
56
assert not ignored ("module.pyc" )
@@ -62,7 +62,7 @@ def test_multiple_regular():
62
62
63
63
64
64
def test_multiple_both ():
65
- ignored = get_ignore (["bar" , "foo" ], [r"\.txt" , r"one\.*" ])
65
+ ignored = Ignore (["bar" , "foo" ], [r"\.txt" , r"one\.*" ])
66
66
67
67
assert ignored ("amazing-file.txt" )
68
68
assert not ignored ("module.pyc" )
0 commit comments