mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 17:24:46 +00:00
trans tests
This commit is contained in:
@@ -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"""
|
||||||
|
|||||||
Reference in New Issue
Block a user