コード例 #1
0
ファイル: test_params.py プロジェクト: utkarshsingh99/dvc
def test_save_info_missing_param(tmp_dir, dvc):
    tmp_dir.gen("params.yaml", "bar: baz")
    dep = ParamsDependency(Stage(dvc), None, ["foo"])
    with pytest.raises(MissingParamsError):
        dep.save_info()
コード例 #2
0
ファイル: test_params.py プロジェクト: utkarshsingh99/dvc
def test_save_info_missing_config(dvc):
    dep = ParamsDependency(Stage(dvc), None, ["foo"])
    with pytest.raises(MissingParamsError):
        dep.save_info()