Coverage for app/ddd/application/uow/user_uow.py: 100%
7 statements
« prev ^ index » next coverage.py v7.6.10, created at 2025-01-15 01:44 +0000
« prev ^ index » next coverage.py v7.6.10, created at 2025-01-15 01:44 +0000
1from sqlmodel import Session
3from app.core.base import BaseUnitOfWork
4from app.ddd.domain.repository import UserRepository
7class UserUnitOfWork(BaseUnitOfWork):
8 def __init__(self, session: Session, user_repository: UserRepository) -> None:
9 """User用UnitOfWork."""
10 super().__init__(session)
11 self.user_repository = user_repository