Skip to content

Commit

Permalink
Write test for get_inode (#2673)
Browse files Browse the repository at this point in the history
  • Loading branch information
algomaster99 authored and efiop committed Oct 28, 2019
1 parent b9c7d88 commit 5f64474
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/unit/utils/test_fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
contains_symlink_up_to,
BasePathNotInCheckedPathException,
get_parent_dirs_up_to,
get_inode,
)
from mock import patch
from tests.basic_env import TestDir
Expand Down Expand Up @@ -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)

0 comments on commit 5f64474

Please sign in to comment.