def clean(cls): # clean database import osmose_run osmose_run.clean_database(cls.conf, cls.logger, False) # clean results file import os try: os.remove(cls.xml_res_file) except OSError: pass
def clean(cls): # clean database import osmose_run import osmose_config conf = osmose_config.template_config("test") conf.db_base = "osmose_test" conf.db_schema = conf.country conf.download["osmosis"] = "test" conf.init() osmose_run.clean_database(conf, cls.logger, False) # clean results file import os os.remove(cls.xml_res_file)