tests/functional/commands/conftest.py
def single_without_success(one_experiment):
    """Create an experiment without a succesful trial."""
    statuses = list(Trial.allowed_stati)
    statuses.remove("completed")

    exp = experiment_builder.build(name="test_single_exp")
    x = {"name": "/x", "type": "real"}

    x_value = 0
    for status in statuses:
        x["value"] = x_value
        trial = Trial(experiment=exp.id, params=[x], status=status)
        x_value += 1
        Database().write("trials", trial.to_dict())
Create an experiment without a succesful trial.
Create an experiment without a succesful trial.
Create an experiment without a succesful trial .
def single_without_success(one_experiment):
    statuses = list(Trial.allowed_stati)
    statuses.remove("completed")
    exp = experiment_builder.build(name="test_single_exp")
    x = {"name": "/x", "type": "real"}
    x_value = 0
    for status in statuses:
        x["value"] = x_value
        trial = Trial(experiment=exp.id, params=[x], status=status)
        x_value += 1
        Database().write("trials", trial.to_dict())
def single_without_success ( one_experiment ) : statuses = list ( Trial . allowed_stati ) statuses . remove ( "completed" ) exp = experiment_builder . build ( name = "test_single_exp" ) x = { "name" : "/x" , "type" : "real" } x_value = 0 for status in statuses : x [ "value" ] = x_value trial = Trial ( experiment = exp . id , params = [ x ] , status = status ) x_value += 1 Database ( ) . write ( "trials" , trial . to_dict ( ) )
Create an experiment without a succesful trial.
Create an experiment without a succesful trial .
"""Create an experiment without a succesful trial."""
one_experiment