def test_load_from_pipeline_error_on_typ(dvc, typ): with pytest.raises(ValueError): output.load_from_pipeline(Stage(dvc), ["file1"], typ)
def test_load_from_pipeline_illegal_type(dvc, key): stage = Stage(dvc) with pytest.raises(ValueError): output.load_from_pipeline(stage, [key], "outs") with pytest.raises(ValueError): output.load_from_pipeline(stage, [{"key": key}], "outs")