mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-08 15:28:26 +01:00
13 lines
335 B
Python
13 lines
335 B
Python
import pytest
|
|
|
|
from dvc.exceptions import InvalidArgumentError
|
|
|
|
|
|
def test_file(tmp_dir, dvc):
|
|
msg = (
|
|
"`--file` is currently incompatible with `-n|--name` "
|
|
"and requires `--single-stage`"
|
|
)
|
|
with pytest.raises(InvalidArgumentError, match=msg):
|
|
dvc.run(fname="path/dvc.yaml", name="my", cmd="mycmd")
|