1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-07 13:23:29 +00:00

Fixing src path in dotfiles to allow different dotpaths than the current one

This commit is contained in:
Davide Laezza
2019-04-23 12:55:23 +02:00
parent da33a134a0
commit fa63131897
4 changed files with 114 additions and 9 deletions

View File

@@ -39,8 +39,8 @@ class TestImport(unittest.TestCase):
def assert_file(self, path, o, profile):
"""Make sure path has been inserted in conf for profile"""
strip = get_path_strip_version(path)
self.assertTrue(strip in [x.src for x in o.dotfiles])
dsts = [os.path.expanduser(x.dst) for x in o.dotfiles]
self.assertTrue(any(x.src.endswith(strip) for x in o.dotfiles))
dsts = (os.path.expanduser(x.dst) for x in o.dotfiles)
self.assertTrue(path in dsts)
def assert_in_yaml(self, path, dic, link=False):