-
Notifications
You must be signed in to change notification settings - Fork 232
/
Copy pathexpand_blank.py
36 lines (36 loc) · 1012 Bytes
/
expand_blank.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
expected = {
"session_name": "Blank pane test",
"windows": [
{
"window_name": "Blank pane test",
"panes": [
{"shell_command": []},
{"shell_command": []},
{"shell_command": []},
],
},
{
"window_name": "More blank panes",
"panes": [
{"shell_command": []},
{"shell_command": []},
{"shell_command": []},
],
},
{
"window_name": "Empty string (return)",
"panes": [
{"shell_command": [{"cmd": ""}]},
{"shell_command": [{"cmd": ""}]},
{"shell_command": [{"cmd": ""}]},
],
},
{
"window_name": "Blank with options",
"panes": [
{"shell_command": [], "focus": True},
{"shell_command": [], "start_directory": "/tmp"},
],
},
],
}