mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 19:44:45 +00:00
fix empty dirs in tests
This commit is contained in:
@@ -30,7 +30,7 @@ class TestCompare(unittest.TestCase):
|
||||
def compare(self, opt, tmp, nbdotfiles):
|
||||
"""compare"""
|
||||
dotfiles = opt.dotfiles
|
||||
self.assertTrue(len(dotfiles) == nbdotfiles)
|
||||
self.assertEqual(len(dotfiles), nbdotfiles)
|
||||
templ = Templategen(base=opt.dotpath, debug=True)
|
||||
inst = Installer(create=opt.create, backup=opt.backup,
|
||||
dry=opt.dry, base=opt.dotpath, debug=opt.debug)
|
||||
@@ -96,6 +96,7 @@ class TestCompare(unittest.TestCase):
|
||||
df5 = get_tempdir()
|
||||
self.assertTrue(os.path.exists(df5))
|
||||
self.addCleanup(clean, df5)
|
||||
_, _ = create_random_file(df5)
|
||||
|
||||
df6, _ = create_random_file(df5)
|
||||
self.assertTrue(os.path.exists(df6))
|
||||
|
||||
Reference in New Issue
Block a user