(
project_id: str,
)
| 57 | |
| 58 | |
| 59 | async def fetch_project_by_id( |
| 60 | project_id: str, |
| 61 | ) -> ProjectDB: |
| 62 | async with engine.core_session() as session: |
| 63 | project = ( |
| 64 | ( |
| 65 | await session.execute( |
| 66 | select(ProjectDB).filter_by( |
| 67 | id=uuid.UUID(project_id), |
| 68 | ) |
| 69 | ) |
| 70 | ) |
| 71 | .scalars() |
| 72 | .first() |
| 73 | ) |
| 74 | |
| 75 | return project |
| 76 | |
| 77 | |
| 78 | async def add_testset_to_app_variant( |
no test coverage detected