def tearDownClass(cls):
     if config.test_data_path in os.listdir(config.test_path):
         if os.path.isfile(config.test_data_path):
             os.remove(config.test_data_path)
         else:
             shutil.rmtree(config.test_data_path)
     walkoff.appgateway.clear_cache()
     multiprocessedexecutor.shutdown_pool()
     execution_db_help.tear_down_device_db()
    def tearDownClass(cls):
        db.session.rollback()
        for user in [
                user for user in User.query.all() if user.username != 'admin'
        ]:
            db.session.delete(user)
        for message in MessageHistory.query.all():
            db.session.delete(message)

        execution_db_help.tear_down_device_db()
    def tearDownClass(cls):
        db.session.rollback()
        for user in [
                user for user in User.query.all() if user.username != 'admin'
        ]:
            db.session.delete(user)
        for role in [
                role for role in Role.query.all() if role.name != 'admin'
        ]:
            db.session.delete(role)
        db.session.commit()

        execution_db_help.tear_down_device_db()
    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 tearDownClass(cls):
     dispatcher._clear()
     walkoff.config.config.app_apis = {}
     walkoff.executiondb.schemas._schema_lookup.pop(MockWorkflow, None)
     execution_db_help.tear_down_device_db()
Exemple #6
0
 def tearDownClass(cls):
     execution_db_help.tear_down_device_db()
Exemple #7
0
 def tearDownClass(cls):
     walkoff.appgateway.clear_cache()
     multiprocessedexecutor.multiprocessedexecutor.shutdown_pool()
     execution_db_help.tear_down_device_db()
Exemple #8
0
 def tearDownClass(cls):
     execution_db_help.tear_down_device_db()
     case_database.case_db.tear_down()
Exemple #9
0
 def tearDownClass(cls):
     execution_db_help.tear_down_device_db()
     walkoff.appgateway.clear_cache()