feat: Add method to get extractions by status and implement user info retrieval in extraction service
This commit is contained in:
@@ -217,6 +217,10 @@ class TestExtractionService:
|
||||
extraction_service.extraction_repo.get_by_service_and_id = AsyncMock(
|
||||
return_value=None,
|
||||
)
|
||||
# Mock user repository
|
||||
from app.models.user import User
|
||||
mock_user = User(id=1, name="Test User")
|
||||
extraction_service.user_repo.get_by_id = AsyncMock(return_value=mock_user)
|
||||
|
||||
# Mock service detection
|
||||
service_info = {
|
||||
|
||||
Reference in New Issue
Block a user