示例#1
0
 def test_is_search_dir_hidden_dir_include_hidden(self):
     settings = self.get_settings()
     settings.excludehidden = False
     searcher = Searcher(settings)
     dir = '.git'
     self.assertTrue(searcher.is_search_dir(dir))
示例#2
0
 def test_is_search_dir_double_dot(self):
     settings = self.get_settings()
     searcher = Searcher(settings)
     dir = '..'
     self.assertTrue(searcher.is_search_dir(dir))
示例#3
0
 def test_is_search_dir_hidden_dir(self):
     settings = self.get_settings()
     searcher = Searcher(settings)
     dir = '.git'
     self.assertFalse(searcher.is_search_dir(dir))
示例#4
0
 def test_is_search_dir_no_patterns(self):
     settings = self.get_settings()
     searcher = Searcher(settings)
     dir = 'plsearch'
     self.assertTrue(searcher.is_search_dir(dir))
示例#5
0
 def test_is_search_dir_no_match_out_pattern(self):
     settings = self.get_settings()
     settings.add_pattern('pysearch', 'out_dirpatterns')
     searcher = Searcher(settings)
     dir = 'plsearch'
     self.assertTrue(searcher.is_search_dir(dir))
示例#6
0
 def test_is_search_dir_hidden_dir_include_hidden(self):
     settings = self.get_settings()
     settings.excludehidden = False
     searcher = Searcher(settings)
     dir = '.git'
     self.assertTrue(searcher.is_search_dir(dir))
示例#7
0
 def test_is_search_dir_hidden_dir(self):
     settings = self.get_settings()
     searcher = Searcher(settings)
     dir = '.git'
     self.assertFalse(searcher.is_search_dir(dir))
示例#8
0
 def test_is_search_dir_double_dot(self):
     settings = self.get_settings()
     searcher = Searcher(settings)
     dir = '..'
     self.assertTrue(searcher.is_search_dir(dir))
示例#9
0
 def test_is_search_dir_no_match_out_pattern(self):
     settings = self.get_settings()
     settings.add_patterns('pysearch', 'out_dirpatterns')
     searcher = Searcher(settings)
     dir = 'plsearch'
     self.assertTrue(searcher.is_search_dir(dir))
示例#10
0
 def test_is_search_dir_no_patterns(self):
     settings = self.get_settings()
     searcher = Searcher(settings)
     dir = 'plsearch'
     self.assertTrue(searcher.is_search_dir(dir))