def tearDown(self):
        execution_db_help.cleanup_device_db()

        case_database.case_db.session.query(case_database.Event).delete()
        case_database.case_db.session.query(case_database.Case).delete()
        case_database.case_db.session.commit()
        walkoff.executiondb.schemas._schema_lookup.pop(MockWorkflow, None)
 def tearDown(self):
     execution_db_help.cleanup_device_db()
     walkoff.case.subscription.clear_subscriptions()
     for case in case_database.case_db.session.query(
             case_database.Case).all():
         case_database.case_db.session.delete(case)
     case_database.case_db.session.commit()
예제 #3
0
    def tearDown(self):
        execution_db_help.cleanup_device_db()

        case_database.case_db.session.query(case_database.Event).delete()
        case_database.case_db.session.query(case_database.Case).delete()
        case_database.case_db.session.commit()
        case_database.case_db.tear_down()
예제 #4
0
    def tearDownClass(cls):
        import walkoff.server.flaskserver
        if tests.config.test_data_path in os.listdir(tests.config.test_path):
            if os.path.isfile(tests.config.test_data_path):
                os.remove(tests.config.test_data_path)
            else:
                shutil.rmtree(tests.config.test_data_path)

        walkoff.server.flaskserver.running_context.executor.shutdown_pool()

        execution_db_help.cleanup_device_db()
        execution_db_help.tear_down_device_db()

        import walkoff.case.database as case_database
        case_database.case_db.tear_down()
        walkoff.appgateway.clear_cache()
 def tearDown(self):
     execution_db_help.cleanup_device_db()
예제 #6
0
 def tearDown(self):
     execution_db_help.cleanup_device_db()
     case_database.case_db.tear_down()
     case_subscription.clear_subscriptions()
     reload(socket)