1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 17:24:46 +00:00

trans tests

This commit is contained in:
deadc0de6
2023-09-18 15:32:20 +02:00
committed by deadc0de
parent abee494104
commit c4fbd1f650

View File

@@ -119,6 +119,16 @@ class TestImporter(unittest.TestCase):
path2, _ = create_random_file(tmpdir, content='left') path2, _ = create_random_file(tmpdir, content='left')
self.assertTrue(imp._check_existing_dotfile(path1, path2)) self.assertTrue(imp._check_existing_dotfile(path1, path2))
def test_apply_trans(self):
"""test apply_trans"""
trans = Transform('key', 'value')
tmpdir = get_tempdir()
self.addCleanup(clean, tmpdir)
path, _ = create_random_file(tmpdir)
imp = Importer('profile', None, '', '', {})
self.assertEqual(imp._apply_trans_w(path, trans), None)
class TestActions(unittest.TestCase): class TestActions(unittest.TestCase):
"""test case""" """test case"""