1
0
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:
deadc0de6
2024-01-29 22:41:30 +01:00
committed by deadc0de
parent 0ac692b2f8
commit c3138fb2d7
3 changed files with 18 additions and 10 deletions

View File

@@ -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))