mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-23 07:18:27 +01:00
fixup! fixes
This commit is contained in:
+2
-1
@@ -78,7 +78,8 @@ def get(url, path, out=None, rev=None):
|
||||
is_not_cached = output and not output.use_cache
|
||||
|
||||
if is_git_file or is_not_cached:
|
||||
return _copy_git_file(repo, path, out, url)
|
||||
_copy_git_file(repo, path, out, url)
|
||||
return
|
||||
|
||||
if output_error:
|
||||
raise OutputNotFoundError(path)
|
||||
|
||||
@@ -151,12 +151,8 @@ def test_fails_with_files_outside_repo(erepo):
|
||||
|
||||
|
||||
def test_fails_with_non_existing_files(erepo):
|
||||
fname = "file_does_not_exist"
|
||||
err = "The path '{}' does not exist in the target repository '{}'".format(
|
||||
fname, erepo.root_dir
|
||||
)
|
||||
with pytest.raises(PathOutsideRepoError, match=err):
|
||||
Repo.get(erepo.root_dir, fname)
|
||||
with pytest.raises(PathOutsideRepoError):
|
||||
Repo.get(erepo.root_dir, "file_does_not_exist")
|
||||
|
||||
|
||||
@pytest.mark.parametrize("dname", [".", "dir", "dir/subdir"])
|
||||
|
||||
Reference in New Issue
Block a user