mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 07:18:27 +01:00
Write test for get_inode (#2673)
This commit is contained in:
committed by
Ruslan Kuprieiev
parent
b9c7d88fcc
commit
5f644745c7
@@ -14,6 +14,7 @@ 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
|
||||
@@ -149,3 +150,9 @@ 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)
|
||||
|
||||
Reference in New Issue
Block a user