tests/functional/commands/conftest.py
def one_experiment_no_version(monkeypatch, one_experiment):
    """Create an experiment without trials."""
    one_experiment["name"] = one_experiment["name"] + "-no-version"
    one_experiment.pop("version")

    def fetch_without_version(query, selection=None):
        if query.get("name") == one_experiment["name"] or query == {}:
            return [copy.deepcopy(one_experiment)]

        return []

    monkeypatch.setattr(get_storage(), "fetch_experiments", fetch_without_version)

    return one_experiment
Create an experiment without trials.
Create an experiment without trials.
Create an experiment without trials .
def one_experiment_no_version(monkeypatch, one_experiment):
    one_experiment["name"] = one_experiment["name"] + "-no-version"
    one_experiment.pop("version")
    def fetch_without_version(query, selection=None):
        if query.get("name") == one_experiment["name"] or query == {}:
            return [copy.deepcopy(one_experiment)]
        return []
    monkeypatch.setattr(get_storage(), "fetch_experiments", fetch_without_version)
    return one_experiment
def one_experiment_no_version ( monkeypatch , one_experiment ) : one_experiment [ "name" ] = one_experiment [ "name" ] + "-no-version" one_experiment . pop ( "version" ) def fetch_without_version ( query , selection = None ) : if query . get ( "name" ) == one_experiment [ "name" ] or query == { } : return [ copy . deepcopy ( one_experiment ) ] return [ ] monkeypatch . setattr ( get_storage ( ) , "fetch_experiments" , fetch_without_version ) return one_experiment
Create an experiment without trials.
Create an experiment without trials .
"""Create an experiment without trials."""
monkeypatch
one_experiment