diff --git a/tests/test_import.py b/tests/test_import.py index 502c5a1..b1d70c3 100644 --- a/tests/test_import.py +++ b/tests/test_import.py @@ -13,6 +13,7 @@ from dotdrop.dotdrop import importer from dotdrop.dotdrop import list_profiles from dotdrop.dotdrop import list_files from dotdrop.dotdrop import header +from dotdrop.dotdrop import update from dotdrop.config import Cfg from tests.helpers import * @@ -196,6 +197,15 @@ class TestImport(unittest.TestCase): list_files(opts, conf) header() + # fake test update + editcontent = 'edited' + with open(dotfile1, 'w') as f: + f.write('edited') + opts['safe'] = False + update(opts, conf, dotfile1) + c2 = open(indt1, 'r').read() + self.assertTrue(editcontent == c2) + def main(): unittest.main()