Skip to content

Commit

Permalink
i
Browse files Browse the repository at this point in the history
  • Loading branch information
tlocke committed Apr 28, 2024
1 parent c31cfeb commit 666ba54
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/native/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ def test_Connection_plain_socket(db_kwargs):
"ssl_context": False,
}

con = Connection(**conn_params)

res = con.run("SELECT 1")
assert res[0][0] == 1
with Connection(**conn_params) as con:
res = con.run("SELECT 1")
assert res[0][0] == 1


def test_database_missing(db_kwargs):
Expand Down Expand Up @@ -327,5 +326,4 @@ def test_parameter_statuses(con):
except DatabaseError:
pass
con.run(f"set session authorization '{role_name}'")
print(con.parameter_statuses)
assert role_name == con.parameter_statuses["session_authorization"]

0 comments on commit 666ba54

Please sign in to comment.