1- from sphinx_autobuild .ignore import get_ignore
1+ from sphinx_autobuild .ignore import Ignore
22
33
44def test_empty ():
5- ignored = get_ignore ([], [])
5+ ignored = Ignore ([], [])
66
77 assert not ignored ("amazing-file.txt" )
88 assert not ignored ("module.pyc" )
@@ -14,7 +14,7 @@ def test_empty():
1414
1515
1616def test_single_regex ():
17- ignored = get_ignore ([], [r"\.pyc$" ])
17+ ignored = Ignore ([], [r"\.pyc$" ])
1818
1919 assert not ignored ("amazing-file.txt" )
2020 assert ignored ("module.pyc" )
@@ -26,7 +26,7 @@ def test_single_regex():
2626
2727
2828def test_multiple_regex ():
29- ignored = get_ignore ([], [r"\.md" , r"one\.rst" ])
29+ ignored = Ignore ([], [r"\.md" , r"one\.rst" ])
3030
3131 assert not ignored ("amazing-file.txt" )
3232 assert not ignored ("module.pyc" )
@@ -38,7 +38,7 @@ def test_multiple_regex():
3838
3939
4040def test_single_regular ():
41- ignored = get_ignore (["*.pyc" ], [])
41+ ignored = Ignore (["*.pyc" ], [])
4242
4343 assert not ignored ("amazing-file.txt" )
4444 assert ignored ("module.pyc" )
@@ -50,7 +50,7 @@ def test_single_regular():
5050
5151
5252def test_multiple_regular ():
53- ignored = get_ignore (["bar" , "foo" ], [])
53+ ignored = Ignore (["bar" , "foo" ], [])
5454
5555 assert not ignored ("amazing-file.txt" )
5656 assert not ignored ("module.pyc" )
@@ -62,7 +62,7 @@ def test_multiple_regular():
6262
6363
6464def test_multiple_both ():
65- ignored = get_ignore (["bar" , "foo" ], [r"\.txt" , r"one\.*" ])
65+ ignored = Ignore (["bar" , "foo" ], [r"\.txt" , r"one\.*" ])
6666
6767 assert ignored ("amazing-file.txt" )
6868 assert not ignored ("module.pyc" )
0 commit comments