@@ -37,9 +37,9 @@ def test_custom_init(self):
37
37
node .safe_psql ('postgres' , 'select 1' )
38
38
39
39
with get_new_node ('test' ) as node :
40
- node .init (allow_streaming = True ,
41
- initdb_params = [ '--auth-local=reject' ,
42
- '--auth-host=reject' ])
40
+ node .init (
41
+ allow_streaming = True ,
42
+ initdb_params = [ '--auth-local=reject' , '--auth-host=reject' ])
43
43
44
44
hba_file = os .path .join (node .data_dir , 'pg_hba.conf' )
45
45
with open (hba_file , 'r' ) as conf :
@@ -114,8 +114,10 @@ def test_psql(self):
114
114
115
115
# check feeding input
116
116
node .safe_psql ('postgres' , 'create table horns (w int)' )
117
- node .safe_psql ('postgres' , 'copy horns from stdin (format csv)' ,
118
- input = b"1\n 2\n 3\n \.\n " )
117
+ node .safe_psql (
118
+ 'postgres' ,
119
+ 'copy horns from stdin (format csv)' ,
120
+ input = b"1\n 2\n 3\n \.\n " )
119
121
sum = node .safe_psql ('postgres' , 'select sum(w) from horns' )
120
122
self .assertEqual (sum , b'6\n ' )
121
123
node .safe_psql ('postgres' , 'drop table horns' )
@@ -378,10 +380,11 @@ def test_poll_query_until(self):
378
380
379
381
# check timeout
380
382
with self .assertRaises (TimeoutException ):
381
- node .poll_query_until (dbname = 'postgres' ,
382
- query = 'select 1 > 2' ,
383
- max_attempts = 5 ,
384
- sleep_time = 0.2 )
383
+ node .poll_query_until (
384
+ dbname = 'postgres' ,
385
+ query = 'select 1 > 2' ,
386
+ max_attempts = 5 ,
387
+ sleep_time = 0.2 )
385
388
386
389
def test_logging (self ):
387
390
logfile = tempfile .NamedTemporaryFile ('w' , delete = True )
0 commit comments