class_docstr: Test the server's response to experiments/status/:name
class_docstr_tok: ["Test","the","server","'s","response","to","experiments\/status\/",":","name"]
docstr: Tests returned experiment stats with max_trials infinite
docstr_tok: ["Tests","returned","experiment","stats","with","max_trials","infinite"]
code: def test_experiment_max_trials_infinite(
      self, client, ephemeral_storage
  ):
      """Tests returned experiment stats with max_trials infinite"""
  
      storage = ephemeral_storage.storage
  
      _add_experiment(
          storage, name="a", version=1, _id=1, max_trials=float("inf")
      )
      _add_trial(
          storage, experiment=1, id_override="ae8", status="completed"
      )
  
      response = client.simulate_get("/experiments/status/a")
      assert response.status == "200 OK"
      assert response.json == {
          "trials_completed": 1,
          "best_trials_id": "7bbfdb8c684aa5f4be324a09d7da94af",
          "best_evaluation": 0.05,
          "start_time": "0001-01-01 00:00:00",
          "finish_time": "0001-01-02 00:00:00",
          "max_trials": "infinite",
          "nb_trials": 1,
          "progress": None,
          "trial_status_count": {"completed": 1},
          "elapsed_time": "23:59:50",
          "sum_of_trials_time": "23:59:50",
          "eta": None,
          "eta_milliseconds": None,
      }
  
imports: import copy
  import datetime
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 3 for calling the TestStats obj's underlying member method code with example usage: obj.test_experiment_max_trials_infinite(client, ephemeral_storage) without return types