mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-05 15:28:27 +01:00
16 lines
291 B
Python
16 lines
291 B
Python
import os
|
|
import filecmp
|
|
|
|
from dvc.repo import Repo
|
|
|
|
|
|
def test_get_file(repo_dir):
|
|
src = repo_dir.FOO
|
|
dst = repo_dir.FOO + "_imported"
|
|
|
|
Repo.get_url(src, dst)
|
|
|
|
assert os.path.exists(dst)
|
|
assert os.path.isfile(dst)
|
|
assert filecmp.cmp(repo_dir.FOO, dst, shallow=False)
|