Skip to content

Commit 070cc2f

Browse files
committed
test_config: test for panes: ['onecommand']
1 parent 7acc16d commit 070cc2f

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

tmuxp/testsuite/test_config.py

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ class ExpandTest(unittest.TestCase):
163163
{'shell_command': 'htop'},
164164
'vim',
165165
]
166+
},
167+
{
168+
'panes': [
169+
'top'
170+
]
166171
}]
167172
}
168173

@@ -195,6 +200,11 @@ class ExpandTest(unittest.TestCase):
195200
{'shell_command': ['htop']},
196201
{'shell_command': ['vim']}
197202
]
203+
},
204+
{
205+
'panes': [
206+
{'shell_command': ['top']}
207+
]
198208
}
199209
]
200210
}
@@ -444,6 +454,9 @@ class ShellCommandBeforeTest(unittest.TestCase):
444454
'panes': [
445455
{'shell_command': ['htop']}
446456
]
457+
},
458+
{
459+
'panes': ['top']
447460
}
448461
]
449462
}
@@ -488,7 +501,12 @@ class ShellCommandBeforeTest(unittest.TestCase):
488501
'panes': [
489502
{'shell_command': ['htop']}
490503
]
491-
}
504+
},
505+
{
506+
'panes': [{
507+
'shell_command': ['top']
508+
}]
509+
},
492510
]
493511
}
494512

@@ -537,11 +555,17 @@ class ShellCommandBeforeTest(unittest.TestCase):
537555
'panes': [
538556
{'shell_command': ['htop']}
539557
]
558+
},
559+
{
560+
'panes': [
561+
{'shell_command': ['top']}
562+
]
540563
}
541564
]
542565
}
543566

544567
def test_shell_command_before(self):
568+
self.maxDiff = None
545569
test_config = self.config_unexpanded
546570
test_config = config.expand(test_config)
547571

0 commit comments

Comments
 (0)