@@ -115,7 +115,9 @@ def test_scan_config(self):
115115
116116 if os .path .exists (self .tmp_dir ):
117117 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+ ):
119121 configs .append (os .path .join (
120122 self .tmp_dir , filela ))
121123
@@ -144,23 +146,25 @@ class ExpandTest(TestCase):
144146 before_config = {
145147 'session_name' : 'sampleconfig' ,
146148 '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+ },
164168 {
165169 'window_name' : 'logging' ,
166170 'panes' : [
@@ -197,7 +201,6 @@ class ExpandTest(TestCase):
197201 'pwd'
198202 ]
199203 },
200-
201204 {
202205 'panes' : [
203206 'top'
@@ -344,7 +347,7 @@ class InlineTest(TestCase):
344347 }
345348
346349 def test_config (self ):
347- """:meth:`config.inline()` shell commands list to string where applicable ."""
350+ """:meth:`config.inline()` shell commands list to string."""
348351
349352 self .maxDiff = None
350353 test_config = config .inline (self .before_config )
@@ -609,7 +612,10 @@ class ShellCommandBeforeTest(TestCase):
609612 'window_name' : 'logging' ,
610613 'panes' : [
611614 {
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+ ],
613619 },
614620 {
615621 'shell_command' : ['rbenv local 2.0.0-p0' ]
@@ -867,7 +873,9 @@ def test_no_session_name(self):
867873 sconfig = kaptan .Kaptan (handler = 'yaml' )
868874 sconfig = sconfig .import_config (yaml_config ).get ()
869875
870- with self .assertRaisesRegexp (exc .ConfigError , 'requires "session_name"' ):
876+ with self .assertRaisesRegexp (
877+ exc .ConfigError , 'requires "session_name"'
878+ ):
871879 config .validate_schema (sconfig )
872880
873881 def test_no_windows (self ):
0 commit comments