mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 17:24:46 +00:00
keep dotpath as a relative path when importing
This commit is contained in:
@@ -95,12 +95,12 @@ class TestCompare(unittest.TestCase):
|
||||
backup=self.CONFIG_BACKUP,
|
||||
create=self.CONFIG_CREATE)
|
||||
self.assertTrue(os.path.exists(confpath))
|
||||
conf, opts = load_config(confpath, self.CONFIG_DOTPATH, profile)
|
||||
conf, opts = load_config(confpath, profile)
|
||||
dfiles = [d1, d2, d3, d4, d5]
|
||||
|
||||
# import the files
|
||||
importer(opts, conf, dfiles)
|
||||
conf, opts = load_config(confpath, self.CONFIG_DOTPATH, profile)
|
||||
conf, opts = load_config(confpath, profile)
|
||||
|
||||
# compare the files
|
||||
expected = {d1: True, d2: True, d3: True, d4: True, d5: True}
|
||||
@@ -137,5 +137,6 @@ class TestCompare(unittest.TestCase):
|
||||
def main():
|
||||
unittest.main()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user