mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
13 lines
306 B
Python
13 lines
306 B
Python
import pytest
|
|
|
|
from dvc.dependency import Dependency
|
|
from dvc.stage import Stage
|
|
|
|
|
|
def test_save_missing(dvc, mocker):
|
|
stage = Stage(dvc)
|
|
dep = Dependency(stage, "path")
|
|
mocker.patch.object(dep.fs, "exists", return_value=False)
|
|
with pytest.raises(dep.DoesNotExistError):
|
|
dep.save()
|