-
Notifications
You must be signed in to change notification settings - Fork 232
/
Copy pathtest2.py
76 lines (73 loc) · 2.45 KB
/
test2.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
from .._util import load_fixture
tmuxinator_yaml = load_fixture("config_tmuxinator/test2.yaml")
tmuxinator_dict = {
"project_name": "sample",
"project_root": "~/test",
"socket_name": "foo",
"pre": "sudo /etc/rc.d/mysqld start",
"rbenv": "2.0.0-p247",
"cli_args": "-f ~/.tmux.mac.conf",
"tabs": [
{
"editor": {
"pre": [
'echo "I get run in each pane, ' 'before each pane command!"',
None,
],
"layout": "main-vertical",
"panes": ["vim", None, "top"],
}
},
{"shell": "git pull"},
{
"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",
"config": "~/.tmux.mac.conf",
"start_directory": "~/test",
"shell_command_before": ["sudo /etc/rc.d/mysqld start", "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",
"panes": ["vim", None, "top"],
},
{"window_name": "shell", "panes": ["git pull"]},
{
"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]"]},
],
}