Skip to content

Commit

Permalink
Remove support for database connection in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
credbbl committed Nov 29, 2023
1 parent c340453 commit 1e82153
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,6 @@ def set_search_path(conn):
await conn.execute(text(f'DROP SCHEMA {schema_name} CASCADE'))


@pytest.fixture
async def db_conn(db_engine):
'''
Provides an asynchronous SQLAlchemy database connection.
This should never be commited, or it will affect other tests.
'''
async with db_engine.begin() as conn:
yield conn
await conn.rollback()


@pytest.fixture
async def db_session(db_engine):
'''
Expand Down

0 comments on commit 1e82153

Please sign in to comment.