mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-27 07:18:28 +01:00
revert changes
This commit is contained in:
@@ -14,7 +14,6 @@ from dvc.utils.fs import (
|
||||
contains_symlink_up_to,
|
||||
BasePathNotInCheckedPathException,
|
||||
get_parent_dirs_up_to,
|
||||
get_inode,
|
||||
)
|
||||
from mock import patch
|
||||
from tests.basic_env import TestDir
|
||||
@@ -150,20 +149,3 @@ def test_relpath_windows_different_drives():
|
||||
rel_info = relpath(info1, info2)
|
||||
assert isinstance(rel_info, str)
|
||||
assert rel_info == path1
|
||||
|
||||
|
||||
def test_get_inode(repo_dir):
|
||||
path = repo_dir.FOO
|
||||
path_info = PathInfo(path)
|
||||
assert get_inode(path) == get_inode(path_info)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("path", [TestDir.DATA, TestDir.DATA_DIR])
|
||||
def test_path_object_and_str_are_valid_types_get_mtime_and_size(
|
||||
path, repo_dir
|
||||
):
|
||||
dvcignore = DvcIgnoreFilter(repo_dir.root_dir)
|
||||
time, size = get_mtime_and_size(path, dvcignore)
|
||||
object_time, object_size = get_mtime_and_size(PathInfo(path), dvcignore)
|
||||
assert time == object_time
|
||||
assert size == object_size
|
||||
|
||||
Reference in New Issue
Block a user