Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPT-5777 add missing packages #17

Merged
merged 1 commit into from
Dec 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/db/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def get_db_session() -> AsyncGenerator[AsyncSession]:

async def verify_db_connection(): # pragma: no cover
async with asynccontextmanager(get_db_session)() as session:
result = await session.exec(text("SELECT 1"))
result = await session.execute(text("SELECT 1"))

if result.one()[0] != 1:
raise RuntimeError("Could not verify database connection")
1 change: 0 additions & 1 deletion migrations/env.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import asyncio
from logging.config import fileConfig

import alembic_postgresql_enum # noqa: F401
from alembic import context
from sqlalchemy import engine_from_config, pool
from sqlalchemy.engine import Connection
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ dependencies = [
"pyjwt==2.10.*",
"sqlalchemy-utils==0.41.*",
"cryptography==44.0.*",
"gunicorn==23.0.*",
"uvloop==0.21.*",
"uvicorn-worker==0.3.*",
]

[dependency-groups]
Expand Down
31 changes: 31 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading