-
Notifications
You must be signed in to change notification settings - Fork 232
/
Copy pathtest3.py
79 lines (76 loc) · 2.59 KB
/
test3.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
from .._util import load_fixture
tmuxinator_yaml = load_fixture("config_tmuxinator/test3.yaml")
tmuxinator_dict = {
"name": "sample",
"root": "~/test",
"socket_name": "foo",
"tmux_options": "-f ~/.tmux.mac.conf",
"pre": "sudo /etc/rc.d/mysqld start",
"pre_window": "rbenv shell 2.0.0-p247",
"windows": [
{
"editor": {
"pre": [
'echo "I get run in each pane, ' 'before each pane command!"',
None,
],
"layout": "main-vertical",
"root": "~/test/editor",
"panes": ["vim", None, "top"],
}
},
{"shell": ["git pull", "git merge"]},
{
"guard": {
"layout": "tiled",
"pre": [
'echo "I get run in each pane."',
'echo "Before each pane command!"',
],
"panes": [None, None, None],
}
},
{"database": "bundle exec rails db"},
{"server": "bundle exec rails s"},
{"logs": "tail -f log/development.log"},
{"console": "bundle exec rails c"},
{"capistrano": None},
{"server": "ssh [email protected]"},
],
}
expected = {
"session_name": "sample",
"socket_name": "foo",
"start_directory": "~/test",
"config": "~/.tmux.mac.conf",
"shell_command": "sudo /etc/rc.d/mysqld start",
"shell_command_before": ["rbenv shell 2.0.0-p247"],
"windows": [
{
"window_name": "editor",
"shell_command_before": [
'echo "I get run in each pane, before each pane command!"',
None,
],
"layout": "main-vertical",
"start_directory": "~/test/editor",
"panes": ["vim", None, "top"],
},
{"window_name": "shell", "panes": ["git pull", "git merge"]},
{
"window_name": "guard",
"layout": "tiled",
"shell_command_before": [
'echo "I get run in each pane."',
'echo "Before each pane command!"',
],
"panes": [None, None, None],
},
{"window_name": "database", "panes": ["bundle exec rails db"]},
{"window_name": "server", "panes": ["bundle exec rails s"]},
{"window_name": "logs", "panes": ["tail -f log/development.log"]},
{"window_name": "console", "panes": ["bundle exec rails c"]},
{"window_name": "capistrano", "panes": [None]},
{"window_name": "server", "panes": ["ssh [email protected]"]},
],
}