tests/functional/commands/conftest.py
def with_experiment_missing_conf_file(monkeypatch, one_experiment):
    """Create an experiment without trials."""
    exp = experiment_builder.build(name="test_single_exp", version=1)
    conf_file = "idontexist.yaml"
    exp.metadata["user_config"] = conf_file
    exp.metadata["user_args"] += ["--config", conf_file]
    Database().write("experiments", exp.configuration, query={"_id": exp.id})

    return exp
Create an experiment without trials.
Create an experiment without trials.
Create an experiment without trials .
def with_experiment_missing_conf_file(monkeypatch, one_experiment):
    exp = experiment_builder.build(name="test_single_exp", version=1)
    conf_file = "idontexist.yaml"
    exp.metadata["user_config"] = conf_file
    exp.metadata["user_args"] += ["--config", conf_file]
    Database().write("experiments", exp.configuration, query={"_id": exp.id})
    return exp
def with_experiment_missing_conf_file ( monkeypatch , one_experiment ) : exp = experiment_builder . build ( name = "test_single_exp" , version = 1 ) conf_file = "idontexist.yaml" exp . metadata [ "user_config" ] = conf_file exp . metadata [ "user_args" ] += [ "--config" , conf_file ] Database ( ) . write ( "experiments" , exp . configuration , query = { "_id" : exp . id } ) return exp
Create an experiment without trials.
Create an experiment without trials .
"""Create an experiment without trials."""
monkeypatch
one_experiment