tests/functional/commands/conftest.py
def one_experiment(monkeypatch, db_instance):
    """Create an experiment without trials."""
    monkeypatch.chdir(os.path.dirname(os.path.abspath(__file__)))
    name = "test_single_exp"
    orion.core.cli.main(
        ["hunt", "--init-only", "-n", name, "./black_box.py", "--x~uniform(0,1)"]
    )
    ensure_deterministic_id(name, db_instance)
    return get_storage().fetch_experiments({"name": name})[0]
Create an experiment without trials.
Create an experiment without trials.
Create an experiment without trials .
def one_experiment(monkeypatch, db_instance):
    monkeypatch.chdir(os.path.dirname(os.path.abspath(__file__)))
    name = "test_single_exp"
    orion.core.cli.main(
        ["hunt", "--init-only", "-n", name, "./black_box.py", "--x~uniform(0,1)"]
    )
    ensure_deterministic_id(name, db_instance)
    return get_storage().fetch_experiments({"name": name})[0]
def one_experiment ( monkeypatch , db_instance ) : monkeypatch . chdir ( os . path . dirname ( os . path . abspath ( __file__ ) ) ) name = "test_single_exp" orion . core . cli . main ( [ "hunt" , "--init-only" , "-n" , name , "./black_box.py" , "--x~uniform(0,1)" ] ) ensure_deterministic_id ( name , db_instance ) return get_storage ( ) . fetch_experiments ( { "name" : name } ) [ 0 ]
Create an experiment without trials.
Create an experiment without trials .
"""Create an experiment without trials."""
monkeypatch
db_instance