@@ -115,7 +115,9 @@ def test_scan_config(self):
115
115
116
116
if os .path .exists (self .tmp_dir ):
117
117
for r , d , f in os .walk (self .tmp_dir ):
118
- for filela in (x for x in f if x .endswith (('.json' , '.ini' , 'yaml' ))):
118
+ for filela in (
119
+ x for x in f if x .endswith (('.json' , '.ini' , 'yaml' ))
120
+ ):
119
121
configs .append (os .path .join (
120
122
self .tmp_dir , filela ))
121
123
@@ -144,23 +146,25 @@ class ExpandTest(TestCase):
144
146
before_config = {
145
147
'session_name' : 'sampleconfig' ,
146
148
'start_directory' : '~' ,
147
- 'windows' : [{
148
- 'window_name' : 'editor' ,
149
- 'panes' : [
150
- {
151
- 'shell_command' : [
152
- 'vim' ,
153
- 'top'
154
- ]
155
- },
156
- {
157
- 'shell_command' : ['vim' ],
158
- },
159
- {
160
- 'shell_command' : 'cowsay "hey"'
161
- },
162
- ],
163
- 'layout' : 'main-verticle' },
149
+ 'windows' : [
150
+ {
151
+ 'window_name' : 'editor' ,
152
+ 'panes' : [
153
+ {
154
+ 'shell_command' : [
155
+ 'vim' ,
156
+ 'top'
157
+ ]
158
+ },
159
+ {
160
+ 'shell_command' : ['vim' ],
161
+ },
162
+ {
163
+ 'shell_command' : 'cowsay "hey"'
164
+ }
165
+ ],
166
+ 'layout' : 'main-verticle'
167
+ },
164
168
{
165
169
'window_name' : 'logging' ,
166
170
'panes' : [
@@ -197,7 +201,6 @@ class ExpandTest(TestCase):
197
201
'pwd'
198
202
]
199
203
},
200
-
201
204
{
202
205
'panes' : [
203
206
'top'
@@ -344,7 +347,7 @@ class InlineTest(TestCase):
344
347
}
345
348
346
349
def test_config (self ):
347
- """:meth:`config.inline()` shell commands list to string where applicable ."""
350
+ """:meth:`config.inline()` shell commands list to string."""
348
351
349
352
self .maxDiff = None
350
353
test_config = config .inline (self .before_config )
@@ -609,7 +612,10 @@ class ShellCommandBeforeTest(TestCase):
609
612
'window_name' : 'logging' ,
610
613
'panes' : [
611
614
{
612
- 'shell_command' : ['rbenv local 2.0.0-p0' , 'tail -F /var/log/syslog' ],
615
+ 'shell_command' : [
616
+ 'rbenv local 2.0.0-p0' ,
617
+ 'tail -F /var/log/syslog'
618
+ ],
613
619
},
614
620
{
615
621
'shell_command' : ['rbenv local 2.0.0-p0' ]
@@ -867,7 +873,9 @@ def test_no_session_name(self):
867
873
sconfig = kaptan .Kaptan (handler = 'yaml' )
868
874
sconfig = sconfig .import_config (yaml_config ).get ()
869
875
870
- with self .assertRaisesRegexp (exc .ConfigError , 'requires "session_name"' ):
876
+ with self .assertRaisesRegexp (
877
+ exc .ConfigError , 'requires "session_name"'
878
+ ):
871
879
config .validate_schema (sconfig )
872
880
873
881
def test_no_windows (self ):
0 commit comments