MCPcopy
hub / github.com/treeverse/dvc / test_pull_partial_import_modified

Function test_pull_partial_import_modified

tests/func/test_data_cloud.py:310–319  ·  view source on GitHub ↗
(tmp_dir, dvc, local_workspace)

Source from the content-addressed store, hash-verified

308
309
310def test_pull_partial_import_modified(tmp_dir, dvc, local_workspace):
311 local_workspace.gen("file", "file content")
312 dst = tmp_dir / "file"
313 dvc.imp_url("remote://workspace/file", os.fspath(dst), no_download=True)
314
315 local_workspace.gen("file", "updated file content")
316 with pytest.raises(CheckoutError) as exc:
317 dvc.pull("file")
318 assert exc.value.result == empty_pull | {"failed": ["file"]}
319 assert not dst.exists()
320
321
322def test_pull_external_dvc_imports_mixed(tmp_dir, dvc, scm, erepo_dir, local_remote):

Callers

nothing calls this directly

Calls 4

genMethod · 0.45
fspathMethod · 0.45
pullMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected