Skip to content

Commit e270211

Browse files
committed
cmd_separator \n doesn't work
1 parent c81c1c0 commit e270211

File tree

1 file changed

+29
-25
lines changed

1 file changed

+29
-25
lines changed

tmuxp/testsuite/test_config_teamocil.py

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ class TeamocilLayoutsTest(unittest.TestCase):
259259
'windows': [{
260260
'name': 'foo',
261261
'clear': True,
262-
'root': '/root',
262+
'root': '/foo',
263263
'layout': 'tiled',
264264
'panes': [
265265
{'cmd': "echo 'foo'"},
@@ -300,38 +300,40 @@ class TeamocilLayoutsTest(unittest.TestCase):
300300
]
301301
},
302302
'panes': [
303-
{ 'cmd': "echo 'foo'" },
304-
{ 'cmd': "echo 'foo again'", 'width': 50 }
303+
{'cmd': "echo 'foo'"},
304+
{'cmd': "echo 'foo again'", 'width': 50}
305305
]
306306
}]
307307
},
308308

309309
'two-windows-with-custom-command-options': {
310310
'windows': [{
311311
'name': 'foo',
312-
'cmd_separator': '\n',
312+
'cmd_separator': ' ',
313313
'with_env_var': False,
314314
'clear': True,
315315
'root': '/foo',
316316
'layout': 'tiled',
317317
'panes': [
318-
{ 'cmd': "echo 'foo'" },
319-
{ 'cmd': "echo 'foo again'" }
318+
{'cmd': "echo 'foo'"},
319+
{'cmd': "echo 'foo again'"}
320320
]
321321
}, {
322322
'name': 'bar',
323323
'cmd_separator': ' && ',
324324
'with_env_var': True,
325325
'root': '/bar',
326326
'splits': [
327-
{ 'cmd': [
327+
{'cmd': [
328328
"echo 'bar'",
329329
"echo 'bar in an array'"
330-
]},
331-
{ 'cmd': "echo 'bar again'",
332-
'focus': True,
333-
'width': 50
334-
}
330+
],
331+
'target': 'bottom-right'
332+
},
333+
{'cmd': "echo 'bar again'",
334+
'focus': True,
335+
'width': 50
336+
}
335337
]
336338
}]
337339
},
@@ -340,19 +342,21 @@ class TeamocilLayoutsTest(unittest.TestCase):
340342
'session': {
341343
'name': 'my awesome session',
342344
'windows': [
343-
{ 'name': 'first window',
344-
'panes': [
345-
{ 'cmd': "echo 'foo'" }
346-
]
347-
}, {
348-
'name': 'second window',
349-
'panes': {
350-
'cmd': "echo 'foo'" }
351-
}, {
352-
'name': 'third window',
353-
'panes': [
354-
{ 'cmd': "echo 'foo'" }
355-
]}
345+
{
346+
'name': 'first window',
347+
'panes': [{
348+
'cmd': "echo 'foo'"
349+
}]
350+
}, {
351+
'name': 'second window',
352+
'panes': [{
353+
'cmd': "echo 'foo'"}]
354+
}, {
355+
'name': 'third window',
356+
'panes': [
357+
{'cmd': "echo 'foo'"}
358+
]
359+
}
356360
]
357361
}
358362
}

0 commit comments

Comments
 (0)