예제 #1
0
    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
예제 #2
0
    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
예제 #3
0
    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)