1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 23:08:02 +00:00
This commit is contained in:
deadc0de6
2017-03-15 21:20:14 +01:00
parent 543c8a03fb
commit 0c1c42a83d

View File

@@ -96,7 +96,8 @@ class TestImport(unittest.TestCase):
sub2, _ = create_random_file(dotfile5)
# import the dotfiles
importer(opts, conf, [dotfile1, dotfile2, dotfile3, dotfile4, dotfile5])
dfiles = [dotfile1, dotfile2, dotfile3, dotfile4, dotfile5]
importer(opts, conf, dfiles)
# reload the config
conf, opts = load_config(confpath, self.CONFIG_DOTPATH, profile)
@@ -123,8 +124,10 @@ class TestImport(unittest.TestCase):
self.assertTrue(os.path.exists(os.path.join(dotfilespath, dotfile3)))
self.assertTrue(os.path.exists(os.path.join(dotfilespath, dotfile4)))
self.assertTrue(os.path.exists(os.path.join(dotfilespath, dotfile5)))
self.assertTrue(os.path.exists(os.path.join(dotfilespath, dotfile5, sub1)))
self.assertTrue(os.path.exists(os.path.join(dotfilespath, dotfile5, sub2)))
self.assertTrue(os.path.exists(os.path.join(dotfilespath,
dotfile5, sub1)))
self.assertTrue(os.path.exists(os.path.join(dotfilespath,
dotfile5, sub2)))
def main():