Skip to content

Commit

Permalink
test(exclude): Add inline ignore comments to omit functions from cove…
Browse files Browse the repository at this point in the history
…rage
  • Loading branch information
lskellerm committed Oct 24, 2024
1 parent 6923213 commit 47a2eab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Base(DeclarativeBase):


# Create the async engine and the async session maker, expire_on_commit is set to False to avoid session expiration
if SQL_ALCHEMY_DATABASE_URL is not None:
if SQL_ALCHEMY_DATABASE_URL is not None: # pragma: no cover
engine = create_async_engine(SQL_ALCHEMY_DATABASE_URL)
async_session_maker = async_sessionmaker(
engine,
Expand All @@ -34,7 +34,7 @@ class Base(DeclarativeBase):
)


async def get_async_session() -> AsyncGenerator[AsyncSession, None]:
async def get_async_session() -> AsyncGenerator[AsyncSession, None]: # pragma: no cover
"""
Dependency that creates a new session and then yields it
Expand Down

0 comments on commit 47a2eab

Please sign in to comment.