@@ -876,13 +876,6 @@ def test_trailing_double_wildcard(self):
876
876
)
877
877
)
878
878
879
- def test_exclude_include_absolute_path (self ):
880
- base = make_tree ([], ['a.py' , 'b.py' ])
881
- assert exclude_paths (
882
- base ,
883
- ['/*' , '!' + os .path .join (base , '*.py' )]
884
- ) == set (['a.py' , 'b.py' ])
885
-
886
879
887
880
class TarTest (unittest .TestCase ):
888
881
def test_tar_with_excludes (self ):
@@ -1033,52 +1026,52 @@ class ShouldCheckDirectoryTest(unittest.TestCase):
1033
1026
1034
1027
def test_should_check_directory_not_excluded (self ):
1035
1028
assert should_check_directory (
1036
- 'not_excluded' , self .exclude_patterns , self .include_patterns , '.'
1029
+ 'not_excluded' , self .exclude_patterns , self .include_patterns
1037
1030
)
1038
1031
assert should_check_directory (
1039
1032
convert_path ('dir/with' ), self .exclude_patterns ,
1040
- self .include_patterns , '.'
1033
+ self .include_patterns
1041
1034
)
1042
1035
1043
1036
def test_shoud_check_parent_directories_of_excluded (self ):
1044
1037
assert should_check_directory (
1045
- 'dir' , self .exclude_patterns , self .include_patterns , '.'
1038
+ 'dir' , self .exclude_patterns , self .include_patterns
1046
1039
)
1047
1040
assert should_check_directory (
1048
1041
convert_path ('dir/with' ), self .exclude_patterns ,
1049
- self .include_patterns , '.'
1042
+ self .include_patterns
1050
1043
)
1051
1044
1052
1045
def test_should_not_check_excluded_directories_with_no_exceptions (self ):
1053
1046
assert not should_check_directory (
1054
1047
'exclude_rather_large_directory' , self .exclude_patterns ,
1055
- self .include_patterns , '.'
1048
+ self .include_patterns
1056
1049
)
1057
1050
assert not should_check_directory (
1058
1051
convert_path ('dir/with/subdir_excluded' ), self .exclude_patterns ,
1059
- self .include_patterns , '.'
1052
+ self .include_patterns
1060
1053
)
1061
1054
1062
1055
def test_should_check_excluded_directory_with_exceptions (self ):
1063
1056
assert should_check_directory (
1064
1057
convert_path ('dir/with/exceptions' ), self .exclude_patterns ,
1065
- self .include_patterns , '.'
1058
+ self .include_patterns
1066
1059
)
1067
1060
assert should_check_directory (
1068
1061
convert_path ('dir/with/exceptions/in' ), self .exclude_patterns ,
1069
- self .include_patterns , '.'
1062
+ self .include_patterns
1070
1063
)
1071
1064
1072
1065
def test_should_not_check_siblings_of_exceptions (self ):
1073
1066
assert not should_check_directory (
1074
1067
convert_path ('dir/with/exceptions/but_not_here' ),
1075
- self .exclude_patterns , self .include_patterns , '.'
1068
+ self .exclude_patterns , self .include_patterns
1076
1069
)
1077
1070
1078
1071
def test_should_check_subdirectories_of_exceptions (self ):
1079
1072
assert should_check_directory (
1080
1073
convert_path ('dir/with/exceptions/like_this_one/subdir' ),
1081
- self .exclude_patterns , self .include_patterns , '.'
1074
+ self .exclude_patterns , self .include_patterns
1082
1075
)
1083
1076
1084
1077
0 commit comments