1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-08 14:54:15 +00:00

fix tests realpath

This commit is contained in:
deadc0de6
2022-05-24 18:00:37 +02:00
committed by deadc0de
parent e4d860844a
commit 1291b4b29a
4 changed files with 8 additions and 3 deletions

View File

@@ -114,7 +114,9 @@ class TestUpdate(unittest.TestCase):
src = os.path.join(o.dotpath, dotfile.src)
src = os.path.expanduser(src)
edit_content(src, '{{@@ profile @@}}')
if os.path.basename(dotfile.dst) == dirsubs:
left = os.path.realpath(os.path.basename(dotfile.dst))
right = os.path.realpath(dirsubs)
if left == right:
# retrieve the path of the sub in the dotpath
d1indotpath = os.path.join(o.dotpath, dotfile.src)
d1indotpath = os.path.expanduser(d1indotpath)