Skip to content

Commit 0e17288

Browse files
committed
black run
1 parent 2aa211a commit 0e17288

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

  • tests/integration/test_session_log

tests/integration/test_session_log/test.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22

33
import grpc
44
import pymysql.connections
5-
import psycopg2 as py_psql
65
import pytest
76
import random
8-
import logging
97
import sys
108
import threading
119

@@ -92,19 +90,20 @@ def grpc_query(query, user_, pass_, raise_exception):
9290
def postgres_query(query, user_, pass_, raise_exception):
9391
try:
9492
connection_string = f"host={instance.hostname} port={POSTGRES_SERVER_PORT} dbname=default user={user_} password={pass_}"
95-
cluster.exec_in_container(cluster.postgres_id,
96-
[
97-
"/usr/bin/psql",
98-
connection_string,
99-
"--no-align",
100-
"--field-separator=' '",
101-
"-c",
102-
query
103-
],
104-
shell=True
105-
)
93+
cluster.exec_in_container(
94+
cluster.postgres_id,
95+
[
96+
"/usr/bin/psql",
97+
connection_string,
98+
"--no-align",
99+
"--field-separator=' '",
100+
"-c",
101+
query,
102+
],
103+
shell=True,
104+
)
106105
except Exception:
107-
assert raise_exception
106+
assert raise_exception
108107

109108

110109
def mysql_query(query, user_, pass_, raise_exception):
@@ -126,6 +125,7 @@ def mysql_query(query, user_, pass_, raise_exception):
126125
except Exception:
127126
assert raise_exception
128127

128+
129129
@pytest.fixture(scope="module")
130130
def started_cluster():
131131
try:

0 commit comments

Comments
 (0)