class_docstr: Tests the server's response on benchmarks/
class_docstr_tok: ["Tests","the","server","'s","response","on","benchmarks\/"]
docstr: Tests that the API returns all the benchmarks with their configuration
docstr_tok: ["Tests","that","the","API","returns","all","the","benchmarks","with","their","configuration"]
code: def test_send_configuration(self, client_with_benchmark):
      """Tests that the API returns all the benchmarks with their configuration"""
      response = client_with_benchmark.simulate_get("/benchmarks")
  
      assert response.json == [
          {
              "name": "branin_baselines",
              "algorithms": ["gridsearch", "random"],
              "assessments": {"AverageResult": {"repetitions": 2}},
              "tasks": {"Branin": {"max_trials": 10}},
          },
          {
              "name": "another_benchmark",
              "algorithms": ["gridsearch", {"random": {"seed": 1}}],
              "assessments": {
                  "AverageRank": {"repetitions": 2},
                  "AverageResult": {"repetitions": 2},
              },
              "tasks": {
                  "Branin": {"max_trials": 10},
                  "CarromTable": {"max_trials": 20},
                  "EggHolder": {"dim": 4, "max_trials": 20},
              },
          },
      ]
      assert response.status == "200 OK"
  
imports: import json
  import os
  import pytest
  from falcon import testing
  from orion.benchmark.assessment import AverageRank, AverageResult
  from orion.benchmark.benchmark_client import get_or_create_benchmark
  from orion.benchmark.task import Branin, CarromTable, EggHolder
  from orion.serving.webapi import WebApi
  from orion.storage.base import setup_storage
label_desc: Use image node_id 2 for calling the TestCollection obj's underlying member method code with example usage: obj.test_send_configuration(client_with_benchmark) without return types