| 296 | |
| 297 | |
| 298 | def test_pull_partial_import_missing(tmp_dir, dvc, local_workspace): |
| 299 | local_workspace.gen("file", "file content") |
| 300 | dst = tmp_dir / "file" |
| 301 | dvc.imp_url("remote://workspace/file", os.fspath(dst), no_download=True) |
| 302 | |
| 303 | (local_workspace / "file").unlink() |
| 304 | with pytest.raises(CheckoutError) as exc: |
| 305 | dvc.pull("file") |
| 306 | assert exc.value.result == empty_pull | {"failed": ["file"]} |
| 307 | assert not dst.exists() |
| 308 | |
| 309 | |
| 310 | def test_pull_partial_import_modified(tmp_dir, dvc, local_workspace): |