Skip to content

Commit

Permalink
drop schema and user at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav committed May 13, 2024
1 parent 5e93167 commit 2193d34
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_pgservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ def test_pure_service(self):

assert count == 1

# tear down
cur.execute(f"DROP SCHEMA {importer.configuration.dbschema} CASCADE;")
conn.commit()
cur.execute("DROP USER sevy;")
conn.commit()

def test_manual_service(self):
"""
Set up connection with service configuration with authentification.
Expand Down Expand Up @@ -272,6 +278,12 @@ def test_manual_service(self):

assert count == 1

# tear down
cur.execute(f"DROP SCHEMA {importer.configuration.dbschema} CASCADE;")
conn.commit()
cur.execute("DROP USER mani;")
conn.commit()

def print_info(self, text):
logging.info(text)

Expand Down

0 comments on commit 2193d34

Please sign in to comment.