def test_experiments_run(dvc, mocker, args, resume): default_arguments = { "params": [], "queue": False, "run_all": False, "jobs": None, "checkpoint_resume": resume, } default_arguments.update(repro_arguments) cmd = CmdExperimentsRun(parse_args(args)) mocker.patch.object(cmd.repo, "reproduce") mocker.patch.object(cmd.repo.experiments, "run") cmd.run() cmd.repo.experiments.run.assert_called_with(PIPELINE_FILE, **default_arguments)
def test_experiments_run(dvc, scm, mocker): default_arguments = { "params": [], "name": None, "queue": False, "run_all": False, "jobs": 1, "tmp_dir": False, "checkpoint_resume": None, "reset": False, } default_arguments.update(repro_arguments) cmd = CmdExperimentsRun(parse_args(["exp", "run"])) mocker.patch.object(cmd.repo, "reproduce") mocker.patch.object(cmd.repo.experiments, "run") cmd.run() cmd.repo.experiments.run.assert_called_with(**default_arguments)
def test_experiments_run(dvc, mocker): cmd = CmdExperimentsRun(parse_args(["exp", "run"])) mocker.patch.object(cmd.repo, "reproduce") cmd.run() cmd.repo.reproduce.assert_called_with(PIPELINE_FILE, **default_run_arguments)