mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
.dvc file: remove cmd support (#9554)
This commit is contained in:
@@ -17,7 +17,6 @@ from dvc.stage.params import StageParams
|
||||
STAGES = "stages"
|
||||
SINGLE_STAGE_SCHEMA = {
|
||||
StageParams.PARAM_MD5: output.CHECKSUM_SCHEMA,
|
||||
StageParams.PARAM_CMD: Any(str, list, None),
|
||||
StageParams.PARAM_WDIR: Any(str, None),
|
||||
StageParams.PARAM_DEPS: Any([dependency.SCHEMA], None),
|
||||
StageParams.PARAM_OUTS: Any([output.SCHEMA], None),
|
||||
|
||||
@@ -20,18 +20,10 @@ def test_cmd_obj():
|
||||
SingleStageFile.validate({Stage.PARAM_CMD: {}})
|
||||
|
||||
|
||||
def test_cmd_none():
|
||||
SingleStageFile.validate({Stage.PARAM_CMD: None})
|
||||
|
||||
|
||||
def test_no_cmd():
|
||||
SingleStageFile.validate({})
|
||||
|
||||
|
||||
def test_cmd_str():
|
||||
SingleStageFile.validate({Stage.PARAM_CMD: "cmd"})
|
||||
|
||||
|
||||
def test_object():
|
||||
with pytest.raises(YAMLValidationError):
|
||||
SingleStageFile.validate({Stage.PARAM_DEPS: {}})
|
||||
|
||||
Reference in New Issue
Block a user