class_docstr: Test creation of experiment with `client.create_experiment()`
class_docstr_tok: ["Test","creation","of","experiment","with","`","client.create_experiment","(",")","`"]
docstr: Test that EphemeralDB is used in debug mode whatever the storage config given
docstr_tok: ["Test","that","EphemeralDB","is","used","in","debug","mode","whatever","the","storage","config","given"]
code: def test_create_experiment_debug_mode(self, tmp_path):
      """Test that EphemeralDB is used in debug mode whatever the storage config given"""
  
      conf_file = str(tmp_path / "db.pkl")
  
      experiment = create_experiment(
          config["name"],
          space={"x": "uniform(0, 10)"},
          storage={
              "type": "legacy",
              "database": {"type": "pickleddb", "host": conf_file},
          },
      )
  
      storage = experiment._experiment._storage
      assert isinstance(storage, Legacy)
      assert isinstance(storage._db, PickledDB)
  
      experiment = create_experiment(
          config["name"],
          space={"x": "uniform(0, 10)"},
          storage={"type": "legacy", "database": {"type": "pickleddb"}},
          debug=True,
      )
  
      storage = experiment._experiment._storage
      assert isinstance(storage, Legacy)
      assert isinstance(storage._db, EphemeralDB)
  
imports: import copy
  import json
  from importlib import reload
  import pytest
  import orion.client
  import orion.client.cli
  import orion.core
  from orion.algo.random import Random
  from orion.client import get_experiment
  from orion.client.experiment import ExperimentClient
  from orion.core.io.database.ephemeraldb import EphemeralDB
  from orion.core.io.database.pickleddb import PickledDB
  from orion.core.utils.exceptions import BranchingEvent, NoConfigurationError, RaceCondition, UnsupportedOperation
  from orion.storage.base import setup_storage
  from orion.storage.legacy import Legacy
  from orion.testing import OrionState
label_desc: Use image node_id 12 for calling the TestCreateExperiment obj's underlying member method code with example usage: obj.test_create_experiment_debug_mode(tmp_path) without return types