don't allow loading stages without cmd (#5373)

* don't allow loading stages without `cmd`

This was loosened when introducing parametrization.
But, `foreach`..`do` should be considered first
before stage's regular structure. And, cmd is made
required (as it should have been)

Related: #5371, #5370, #5312

* fix schema
This commit is contained in:
Saugat Pachhai
2021-02-01 13:23:40 +05:45
committed by GitHub
parent b771b06b25
commit 131eb7b3a1
4 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ from dvc.cli import parse_args
from dvc.command.status import CmdDataStatus
def test_cloud_status(mocker):
def test_cloud_status(tmp_dir, dvc, mocker):
cli_args = parse_args(
[
"status",