def METHOD_NAME(self, session):
    agent = AgentFactory.create()
    params = {'old_param': True}
    executor = ExecutorFactory.create(
        name='old_executor',
        agent=agent,
        parameters_metadata=params
    )
    session.add(executor)
    session.commit()
    executors = [
    ]
    assert update_executors(agent, executors)
    count_executors = Executor.query.filter_by(agent=agent).count()
    assert count_executors == 0