Skip to content

Commit

Permalink
i
Browse files Browse the repository at this point in the history
  • Loading branch information
tlocke committed Mar 31, 2024
1 parent 8dc9fd1 commit 0c5ad61
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/native/auth/test_scram-sha-256.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from pg8000.native import Connection, InterfaceError
from pg8000.native import Connection, DatabaseError, InterfaceError

# This requires a line in pg_hba.conf that requires scram-sha-256 for the
# database scram_sha_256
Expand All @@ -10,6 +10,10 @@

@pytest.fixture
def setup(con):
try:
con.run("CREATE DATABASE {DB}")
except DatabaseError:
pass
con.run("ALTER SYSTEM SET ssl = off")
con.run("SELECT pg_reload_conf()")
yield
Expand Down

0 comments on commit 0c5ad61

Please sign in to comment.