1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 19:09:44 +00:00

fix tests with ~/.config

This commit is contained in:
deadc0de6
2017-03-15 18:46:52 +01:00
parent 278cadd08d
commit 6e3ba93c77

View File

@@ -90,7 +90,9 @@ class TestImport(unittest.TestCase):
dotfile2, content2 = create_random_file(os.path.expanduser('~'))
self.addCleanup(clean, dotfile2)
homeconf = os.path.join(os.path.expanduser('~'), '.config')
os.mkdir(homeconf)
if not os.path.exists(homeconf):
os.mkdir(homeconf)
self.addCleanup(clean, homeconf)
dotconfig = os.path.join(homeconf, get_string(5))
create_dir(dotconfig)
self.addCleanup(clean, dotconfig)