def database_2(): # Set up the database db = PostgreSQL("test_from_ward_2", verbosity="minimal", **configurations()["localhost"]) # Yield to the test yield db # Tear down this database automatically db.db_delete()
def _test_db_delete(db: PostgreSQL): db.db_delete() assert not db.exists()