def cleardata(appenv): """Clear the application data directories, cache/ and templates/""" from zeta.lib.cache import cleancache from zeta.config.environment import cleantmplmodules cleancache(appenv) cleantmplmodules()
def tearDownModule(): testdir = os.path.basename(os.path.dirname(__file__)) testfile = os.path.basename(__file__) log_mfooter(log, testdir, testfile) # Clean up cache cachemod.cleancache(cachedir)
def tearDownModule(): testdir = os.path.basename(os.path.dirname(__file__)) testfile = os.path.basename(__file__) log_mfooter(log, testdir, testfile) info = " Deleting models (module-level) ... " log.info(info) print info delete_models(meta.engine) # Clean up cache cachemod.cleancache(cachedir)