Ejemplo n.º 1
0
 def test_should_check_excluded_directory_with_exceptions(self):
     assert should_check_directory(convert_path('dir/with/exceptions'),
                                   self.exclude_patterns,
                                   self.include_patterns)
     assert should_check_directory(convert_path('dir/with/exceptions/in'),
                                   self.exclude_patterns,
                                   self.include_patterns)
Ejemplo n.º 2
0
 def test_shoud_check_parent_directories_of_excluded(self):
     self.assertTrue(
         should_check_directory('dir', self.exclude_patterns,
                                self.include_patterns))
     self.assertTrue(
         should_check_directory('dir/with', self.exclude_patterns,
                                self.include_patterns))
Ejemplo n.º 3
0
 def test_should_not_check_excluded_directories_with_no_exceptions(self):
     assert not should_check_directory('exclude_rather_large_directory',
                                       self.exclude_patterns,
                                       self.include_patterns)
     assert not should_check_directory(
         convert_path('dir/with/subdir_excluded'), self.exclude_patterns,
         self.include_patterns)
Ejemplo n.º 4
0
 def test_should_check_directory_not_excluded(self):
     assert should_check_directory(
         'not_excluded', self.exclude_patterns, self.include_patterns
     )
     assert should_check_directory(
         convert_path('dir/with'), self.exclude_patterns,
         self.include_patterns
     )
Ejemplo n.º 5
0
 def test_should_check_directory_not_excluded(self):
     assert should_check_directory(
         'not_excluded', self.exclude_patterns, self.include_patterns
     )
     assert should_check_directory(
         convert_path('dir/with'), self.exclude_patterns,
         self.include_patterns
     )
Ejemplo n.º 6
0
    def test_should_check_directory_not_excluded(self):
        self.assertTrue(
            should_check_directory('not_excluded', self.exclude_patterns,
                                   self.include_patterns))

        self.assertTrue(
            should_check_directory('dir/with', self.exclude_patterns,
                                   self.include_patterns))
Ejemplo n.º 7
0
 def test_shoud_check_parent_directories_of_excluded(self):
     assert should_check_directory(
         'dir', self.exclude_patterns, self.include_patterns
     )
     assert should_check_directory(
         convert_path('dir/with'), self.exclude_patterns,
         self.include_patterns
     )
Ejemplo n.º 8
0
 def test_shoud_check_parent_directories_of_excluded(self):
     assert should_check_directory(
         'dir', self.exclude_patterns, self.include_patterns
     )
     assert should_check_directory(
         convert_path('dir/with'), self.exclude_patterns,
         self.include_patterns
     )
Ejemplo n.º 9
0
 def test_shoud_check_parent_directories_of_excluded(self):
     self.assertTrue(
         should_check_directory('dir', self.exclude_patterns,
                                self.include_patterns)
     )
     self.assertTrue(
         should_check_directory('dir/with', self.exclude_patterns,
                                self.include_patterns)
     )
Ejemplo n.º 10
0
 def test_should_check_excluded_directory_with_exceptions(self):
     self.assertTrue(
         should_check_directory('dir/with/exceptions',
                                self.exclude_patterns,
                                self.include_patterns))
     self.assertTrue(
         should_check_directory('dir/with/exceptions/in',
                                self.exclude_patterns,
                                self.include_patterns))
Ejemplo n.º 11
0
 def test_should_not_check_excluded_directories_with_no_exceptions(self):
     assert not should_check_directory(
         'exclude_rather_large_directory', self.exclude_patterns,
         self.include_patterns
     )
     assert not should_check_directory(
         convert_path('dir/with/subdir_excluded'), self.exclude_patterns,
         self.include_patterns
     )
Ejemplo n.º 12
0
 def test_should_check_excluded_directory_with_exceptions(self):
     assert should_check_directory(
         convert_path('dir/with/exceptions'), self.exclude_patterns,
         self.include_patterns
     )
     assert should_check_directory(
         convert_path('dir/with/exceptions/in'), self.exclude_patterns,
         self.include_patterns
     )
Ejemplo n.º 13
0
 def test_should_not_check_excluded_directories_with_no_exceptions(self):
     self.assertFalse(
         should_check_directory('exclude_rather_large_directory',
                                self.exclude_patterns,
                                self.include_patterns))
     self.assertFalse(
         should_check_directory('dir/with/subdir_excluded',
                                self.exclude_patterns,
                                self.include_patterns))
Ejemplo n.º 14
0
    def test_should_check_directory_not_excluded(self):
        self.assertTrue(
            should_check_directory('not_excluded', self.exclude_patterns,
                                   self.include_patterns)
        )

        self.assertTrue(
            should_check_directory('dir/with', self.exclude_patterns,
                                   self.include_patterns)
        )
Ejemplo n.º 15
0
 def test_should_not_check_excluded_directories_with_no_exceptions(self):
     self.assertFalse(
         should_check_directory('exclude_rather_large_directory',
                                self.exclude_patterns, self.include_patterns
                                )
     )
     self.assertFalse(
         should_check_directory('dir/with/subdir_excluded',
                                self.exclude_patterns, self.include_patterns
                                )
     )
Ejemplo n.º 16
0
 def test_should_check_excluded_directory_with_exceptions(self):
     self.assertTrue(
         should_check_directory('dir/with/exceptions',
                                self.exclude_patterns, self.include_patterns
                                )
     )
     self.assertTrue(
         should_check_directory('dir/with/exceptions/in',
                                self.exclude_patterns, self.include_patterns
                                )
     )
Ejemplo n.º 17
0
 def test_should_not_check_siblings_of_exceptions(self):
     assert not should_check_directory(
         convert_path('dir/with/exceptions/but_not_here'),
         self.exclude_patterns, self.include_patterns)
Ejemplo n.º 18
0
 def test_should_check_subdirectories_of_exceptions(self):
     assert should_check_directory(
         convert_path('dir/with/exceptions/like_this_one/subdir'),
         self.exclude_patterns, self.include_patterns
     )
Ejemplo n.º 19
0
 def test_should_not_check_siblings_of_exceptions(self):
     assert not should_check_directory(
         convert_path('dir/with/exceptions/but_not_here'),
         self.exclude_patterns, self.include_patterns
     )
Ejemplo n.º 20
0
 def test_should_not_check_siblings_of_exceptions(self):
     self.assertFalse(
         should_check_directory('dir/with/exceptions/but_not_here',
                                self.exclude_patterns,
                                self.include_patterns))
Ejemplo n.º 21
0
 def test_should_check_subdirectories_of_exceptions(self):
     self.assertTrue(
         should_check_directory('dir/with/exceptions/like_this_one/subdir',
                                self.exclude_patterns, self.include_patterns
                                )
     )
Ejemplo n.º 22
0
 def test_should_not_check_siblings_of_exceptions(self):
     self.assertFalse(
         should_check_directory('dir/with/exceptions/but_not_here',
                                self.exclude_patterns, self.include_patterns
                                )
     )
Ejemplo n.º 23
0
 def test_should_check_subdirectories_of_exceptions(self):
     self.assertTrue(
         should_check_directory('dir/with/exceptions/like_this_one/subdir',
                                self.exclude_patterns,
                                self.include_patterns))
Ejemplo n.º 24
0
 def test_should_check_subdirectories_of_exceptions(self):
     assert should_check_directory(
         convert_path('dir/with/exceptions/like_this_one/subdir'),
         self.exclude_patterns, self.include_patterns)