def METHOD_NAME(self, session):
    agent = AgentFactory.create()
    executors = [
        {'invalid_key': 'nmap_executor'},
        {'executor_name': 'executor 1', 'args': {'param1': True}}
    ]
    assert update_executors(agent, executors)
    count_executors = Executor.query.filter_by(agent=agent).count()
    assert count_executors == 1