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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user