@@ -41,7 +41,7 @@ def tmuxinator_to_tmuxp(sconf):
4141 tmuxp_config ['socket_name' ] = sconf ['socket_name' ]
4242
4343 tmuxp_config ['windows' ] = []
44- logger . error ( sconf )
44+
4545 if 'tabs' in sconf :
4646 sconf ['windows' ] = sconf .pop ('tabs' )
4747
@@ -65,14 +65,12 @@ def tmuxinator_to_tmuxp(sconf):
6565
6666 windowdict ['window_name' ] = k
6767
68- logger .error ('%s, %s' % (k , v ))
69-
7068 if isinstance (v , basestring ) or v is None :
7169 windowdict ['panes' ] = [v ]
70+ tmuxp_config ['windows' ].append (windowdict )
7271 continue
7372
7473 if 'pre' in v :
75- logger .error (v ['pre' ])
7674 windowdict ['shell_command_before' ] = v ['pre' ]
7775 if 'panes' in v :
7876 windowdict ['panes' ] = v ['panes' ]
@@ -149,7 +147,7 @@ def test_config_to_dict(self):
149147 yaml_to_dict = test_config .get ()
150148 self .assertDictEqual (yaml_to_dict , self .tmuxinator_dict )
151149
152- self .assertDictEqual (tmuxinator_to_tmuxp (yaml_to_dict ), self .tmuxp_dict )
150+ self .assertDictEqual (tmuxinator_to_tmuxp (self . tmuxinator_dict ), self .tmuxp_dict )
153151
154152
155153class TmuxinatorDeprecationsTest (unittest .TestCase ):
@@ -268,7 +266,6 @@ class TmuxinatorDeprecationsTest(unittest.TestCase):
268266 },
269267 {
270268 'window_name' : 'shell' ,
271- 'layout' : 'layout' ,
272269 'panes' : [
273270 'git pull'
274271 ]
@@ -332,7 +329,7 @@ def test_config_to_dict(self):
332329 yaml_to_dict = test_config .get ()
333330 self .assertDictEqual (yaml_to_dict , self .tmuxinator_dict )
334331
335- self .assertDictEqual (tmuxinator_to_tmuxp (yaml_to_dict ), self .tmuxp_dict )
332+ self .assertDictEqual (tmuxinator_to_tmuxp (self . tmuxinator_dict ), self .tmuxp_dict )
336333
337334
338335class TmuxinatoriSampleTest (unittest .TestCase ):
0 commit comments