Skip to content

Commit 5b15db9

Browse files
committed
reformat code using yapf
1 parent 613c59c commit 5b15db9

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

tests/test_simple.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ def test_custom_init(self):
3737
node.safe_psql('postgres', 'select 1')
3838

3939
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'])
4343

4444
hba_file = os.path.join(node.data_dir, 'pg_hba.conf')
4545
with open(hba_file, 'r') as conf:
@@ -114,8 +114,10 @@ def test_psql(self):
114114

115115
# check feeding input
116116
node.safe_psql('postgres', 'create table horns (w int)')
117-
node.safe_psql('postgres', 'copy horns from stdin (format csv)',
118-
input=b"1\n2\n3\n\.\n")
117+
node.safe_psql(
118+
'postgres',
119+
'copy horns from stdin (format csv)',
120+
input=b"1\n2\n3\n\.\n")
119121
sum = node.safe_psql('postgres', 'select sum(w) from horns')
120122
self.assertEqual(sum, b'6\n')
121123
node.safe_psql('postgres', 'drop table horns')
@@ -378,10 +380,11 @@ def test_poll_query_until(self):
378380

379381
# check timeout
380382
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)
385388

386389
def test_logging(self):
387390
logfile = tempfile.NamedTemporaryFile('w', delete=True)

0 commit comments

Comments
 (0)