docstr: Router raises a ValueError if each route does not contain 'condition', 'output', and 'output_type' keys
docstr_tok: ["Router","raises","a","ValueError","if","each","route","does","not","contain","'condition","'",",","'output","'",",","and","'output_type","'","keys"]
code: def test_router_raises_value_error_if_route_missing_keys(self):
      """
      Router raises a ValueError if each route does not contain 'condition', 'output', and 'output_type' keys
      """
      routes = [
          {
              "condition": "{{streams|length < 2}}",
              "output": "{{query}}",
          },
          {"condition": "{{streams|length < 2}}", "output_type": str},
      ]
  
      with pytest.raises(ValueError):
          ConditionalRouter(routes)
  
imports: import copy
  from typing import List
  from unittest import mock
  import pytest
  from haystack.components.routers import ConditionalRouter
  from haystack.components.routers.conditional_router import NoRouteSelectedException
  from haystack.dataclasses import ChatMessage
label_desc: Use image node_id 13 for calling the TestRouter obj's underlying member method code with example usage: obj.test_router_raises_value_error_if_route_missing_keys() without return types