mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-06 23:00:38 +00:00
migrate trans to trans_read
This commit is contained in:
@@ -238,7 +238,7 @@ def populate_fake_config(config, dotfiles={}, profiles={}, actions={},
|
||||
config['dotfiles'] = dotfiles
|
||||
config['profiles'] = profiles
|
||||
config['actions'] = actions
|
||||
config['trans'] = trans
|
||||
config['trans_read'] = trans
|
||||
config['trans_write'] = trans_write
|
||||
config['variables'] = variables
|
||||
config['dynvariables'] = dynvariables
|
||||
|
||||
@@ -349,7 +349,7 @@ class TestImport(unittest.TestCase):
|
||||
self.assertFalse(any(a.endswith('ing') for a in actions))
|
||||
|
||||
# testing transformations
|
||||
transformations = y['trans'].keys()
|
||||
transformations = y['trans_read'].keys()
|
||||
self.assertTrue(all(t.endswith('ed') for t in transformations))
|
||||
self.assertFalse(any(t.endswith('ing') for t in transformations))
|
||||
transformations = y['trans_write'].keys()
|
||||
@@ -391,7 +391,7 @@ class TestImport(unittest.TestCase):
|
||||
self.assertFalse(any(action.endswith('ed') for action in actions))
|
||||
|
||||
# testing transformations
|
||||
transformations = y['trans'].keys()
|
||||
transformations = y['trans_read'].keys()
|
||||
self.assertTrue(all(t.endswith('ing') for t in transformations))
|
||||
self.assertFalse(any(t.endswith('ed') for t in transformations))
|
||||
transformations = y['trans_write'].keys()
|
||||
|
||||
@@ -65,7 +65,7 @@ exec bspwm
|
||||
f.write(' - {}\n'.format(action.key))
|
||||
if d.trans_r:
|
||||
for tr in d.trans_r:
|
||||
f.write(' trans: {}\n'.format(tr.key))
|
||||
f.write(' trans_read: {}\n'.format(tr.key))
|
||||
f.write('profiles:\n')
|
||||
f.write(' {}:\n'.format(profile))
|
||||
f.write(' dotfiles:\n')
|
||||
|
||||
Reference in New Issue
Block a user