class_docstr: Test creation of experiment with `client.create_experiment()`
class_docstr_tok: ["Test","creation","of","experiment","with","`","client.create_experiment","(",")","`"]
docstr: Test creation if storage is not configured
docstr_tok: ["Test","creation","if","storage","is","not","configured"]
code: def test_create_experiment_no_storage(self, monkeypatch):
      """Test creation if storage is not configured"""
      name = "oopsie_forgot_a_storage"
      host = orion.core.config.storage.database.host
  
      with OrionState(
          storage=orion.core.config.storage.to_dict()
      ) as cfg:
          # Reset the Storage and drop instances so that setup_storage() would fail.
          cfg.cleanup()
  
          # Make sure storage must be instantiated during `create_experiment()`
          # with pytest.raises(SingletonNotInstantiatedError):
          #    setup_storage()
  
          experiment = create_experiment(
              name=name,
              space={"x": "uniform(0, 10)"},
              storage=cfg.storage_config,
          )
  
          assert isinstance(experiment._experiment._storage, Legacy)
          assert isinstance(
              experiment._experiment._storage._db, PickledDB
          )
          assert experiment._experiment._storage._db.host == host
  
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 1 for calling the TestCreateExperiment obj's underlying member method code with example usage: obj.test_create_experiment_no_storage(monkeypatch) without return types