| 308 | |
| 309 | |
| 310 | def 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 | |
| 322 | def test_pull_external_dvc_imports_mixed(tmp_dir, dvc, scm, erepo_dir, local_remote): |