예제 #1
0
파일: acd_cli.py 프로젝트: bsnipes/acd_cli
def clear_action(args: argparse.Namespace):
    if not db.remove_db_file(CACHE_PATH):
        return ERROR_RETVAL
예제 #2
0
 def setUp(self):
     db.remove_db_file(self.path)
     db.init(self.path)
예제 #3
0
 def tearDown(self):
     db.remove_db_file(self.path)
예제 #4
0
 def tearDown(self):
     db.remove_db_file(self.path)
예제 #5
0
def clear_action(args: argparse.Namespace):
    if not db.remove_db_file(CACHE_PATH):
        return ERROR_RETVAL
예제 #6
0
 def testClearCacheNonExist(self):
     db.remove_db_file(cache_path)
     sys.argv.append('cc')
     self.assertEqual(run_main(), acd_cli.ERROR_RETVAL)
예제 #7
0
 def setUp(self):
     db.remove_db_file(self.path)
     db.init(self.path)
예제 #8
0
 def tearDown(self):
     db.remove_db_file(cache_path)
예제 #9
0
 def setUp(self):
     db.remove_db_file(self.path)
     self.cache = db.NodeCache(self.path)
예제 #10
0
 def tearDown(self):
     sys.stdout = self.stdout
     db.remove_db_file(path)
예제 #11
0
 def setUp(self):
     db.remove_db_file(self.path)
     self.cache = db.NodeCache(self.path)
예제 #12
0
 def tearDown(self):
     sys.stdout = self.stdout
     db.remove_db_file(path)
     query.get_root_node.cache_clear()