@@ -195,22 +195,19 @@ class WindowOptions(TmuxTestCase):
195195 windows:
196196 - layout: main-horizontal
197197 options:
198- main-pane-height: 30
198+ main-pane-height: 5
199199 panes:
200- - shell_command:
201- - vim
202- start_directory: '~'
203- - shell_command:
204- - echo "hey"
205- - shell_command:
206- - echo "moo"
200+ - pane
201+ - pane
202+ - pane
207203 window_name: editor
208204 """
209205
210206 def test_window_options (self ):
211207 s = self .session
212208 sconfig = kaptan .Kaptan (handler = 'yaml' )
213209 sconfig = sconfig .import_config (self .yaml_config ).get ()
210+ sconfig = config .expand (sconfig )
214211
215212 builder = WorkspaceBuilder (sconf = sconfig )
216213
@@ -223,7 +220,7 @@ def test_window_options(self):
223220 p = p
224221 self .assertEqual (len (s ._windows ), window_count )
225222 self .assertIsInstance (w , Window )
226- self .assertEqual (w .show_window_option ('main-pane-height' ), 30 )
223+ self .assertEqual (w .show_window_option ('main-pane-height' ), 5 )
227224
228225 self .assertEqual (len (s ._windows ), window_count )
229226 window_count += 1
@@ -315,18 +312,23 @@ def test_blank_pane_count(self):
315312
316313 test_config = kaptan .Kaptan ().import_config (self .yaml_config_file ).get ()
317314 test_config = config .expand (test_config )
315+ # for window in test_config['windows']:
316+ # window['layout'] = 'tiled'
318317 builder = WorkspaceBuilder (sconf = test_config )
319318 builder .build (session = self .session )
320319
320+ self .assertEqual (self .session , builder .session )
321+
321322 window1 = self .session .findWhere ({'window_name' : 'Blank pane test' })
322- self .assertEqual (len (window1 ._panes ), 6 )
323+ self .assertEqual (len (window1 ._panes ), 3 )
324+
325+ window2 = self .session .findWhere ({'window_name' : 'More blank panes' })
326+ self .assertEqual (len (window2 ._panes ), 3 )
323327
324- window1 = self .session .findWhere (
328+ window3 = self .session .findWhere (
325329 {'window_name' : 'Empty string (return)' }
326330 )
327- self .assertEqual (len (window1 ._panes ), 3 )
328-
329- self .assertEqual (self .session , builder .session )
331+ self .assertEqual (len (window3 ._panes ), 3 )
330332
331333
332334class StartDirectoryTest (TmuxTestCase ):
@@ -406,6 +408,7 @@ class PaneOrderingTest(TmuxTestCase):
406408 windows:
407409 - options:
408410 - automatic_rename: on
411+ layout: tiled
409412 panes:
410413 - cd /var/log
411414 - cd /sys
0 commit comments