tests/functional/commands/conftest.py
def three_family_branch_with_trials(
    three_experiments_family_branch, family_with_trials
):
    """Create three experiments, all related, one child and one grandchild,
    with all types of trials.

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

    x_value = 0
    for status in Trial.allowed_stati:
        x["value"] = x_value
        y["value"] = x_value * 10
        z["value"] = x_value * 100
        trial = Trial(experiment=exp.id, params=[x, y, z], status=status)
        x_value += 1
        Database().write("trials", trial.to_dict())
Create three experiments, all related, one child and one grandchild,
    with all types of trials.

    
Create three experiments, all related, one child and one grandchild,
with all types of trials.
Create three experiments all related one child and one grandchild with all types of trials .
def three_family_branch_with_trials(
    three_experiments_family_branch, family_with_trials
):
    exp = experiment_builder.build(name="test_double_exp_grand_child")
    x = {"name": "/x", "type": "real"}
    y = {"name": "/y", "type": "real"}
    z = {"name": "/z", "type": "real"}
    x_value = 0
    for status in Trial.allowed_stati:
        x["value"] = x_value
        y["value"] = x_value * 10
        z["value"] = x_value * 100
        trial = Trial(experiment=exp.id, params=[x, y, z], status=status)
        x_value += 1
        Database().write("trials", trial.to_dict())
def three_family_branch_with_trials ( three_experiments_family_branch , family_with_trials ) : exp = experiment_builder . build ( name = "test_double_exp_grand_child" ) x = { "name" : "/x" , "type" : "real" } y = { "name" : "/y" , "type" : "real" } z = { "name" : "/z" , "type" : "real" } x_value = 0 for status in Trial . allowed_stati : x [ "value" ] = x_value y [ "value" ] = x_value * 10 z [ "value" ] = x_value * 100 trial = Trial ( experiment = exp . id , params = [ x , y , z ] , status = status ) x_value += 1 Database ( ) . write ( "trials" , trial . to_dict ( ) )
Create three experiments, all related, one child and one grandchild,
with all types of trials.
Create three experiments all related one child and one grandchild with all types of trials .
"""Create three experiments, all related, one child and one grandchild,
    with all types of trials.

    """
three_experiments_family_branch
family_with_trials