tests/functional/commands/conftest.py
def two_experiments_same_name(one_experiment, db_instance):
    """Create two experiments with the same name but different versions."""
    orion.core.cli.main(
        [
            "hunt",
            "--init-only",
            "-n",
            "test_single_exp",
            "./black_box.py",
            "--x~uniform(0,1)",
            "--y~+normal(0,1)",
        ]
    )
    ensure_deterministic_id("test_single_exp", db_instance, version=2)
Create two experiments with the same name but different versions.
Create two experiments with the same name but different versions.
Create two experiments with the same name but different versions .
def two_experiments_same_name(one_experiment, db_instance):
    orion.core.cli.main(
        [
            "hunt",
            "--init-only",
            "-n",
            "test_single_exp",
            "./black_box.py",
            "--x~uniform(0,1)",
            "--y~+normal(0,1)",
        ]
    )
    ensure_deterministic_id("test_single_exp", db_instance, version=2)
def two_experiments_same_name ( one_experiment , db_instance ) : orion . core . cli . main ( [ "hunt" , "--init-only" , "-n" , "test_single_exp" , "./black_box.py" , "--x~uniform(0,1)" , "--y~+normal(0,1)" , ] ) ensure_deterministic_id ( "test_single_exp" , db_instance , version = 2 )
Create two experiments with the same name but different versions.
Create two experiments with the same name but different versions .
"""Create two experiments with the same name but different versions."""
one_experiment
db_instance