-
Notifications
You must be signed in to change notification settings - Fork 232
/
Copy pathtest3.py
45 lines (42 loc) · 1.4 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
from .._util import load_fixture
teamocil_yaml = load_fixture("config_teamocil/test3.yaml")
teamocil_dict = {
"windows": [
{
"name": "my-first-window",
"root": "~/Projects/foo-www",
"layout": "even-vertical",
"filters": {
"before": "rbenv local 2.0.0-p0",
"after": "echo 'I am done initializing this pane.'",
},
"panes": [
{"cmd": "git status"},
{"cmd": "bundle exec rails server --port 40", "focus": True},
{"cmd": ["sudo service memcached start", "sudo service mongodb start"]},
],
}
]
}
expected = {
"session_name": None,
"windows": [
{
"window_name": "my-first-window",
"layout": "even-vertical",
"start_directory": "~/Projects/foo-www",
"shell_command_before": "rbenv local 2.0.0-p0",
"shell_command_after": ("echo " "'I am done initializing this pane.'"),
"panes": [
{"shell_command": "git status"},
{"shell_command": "bundle exec rails server --port 40", "focus": True},
{
"shell_command": [
"sudo service memcached start",
"sudo service mongodb start",
]
},
],
}
],
}