fix: improve maintenance and synchronize live conversations
This commit is contained in:
1 parent
bb541bd212
commit
ef86a5d3af
297 files changed
+2983
-1274
No files matched your search
@@ -28,7 +28,7 @@ from app.models.crm import (
|
||||
from app.models.customer import Customer
|
||||
from app.models.lead_capture import LeadCaptureConfig, LeadCaptureResponse
|
||||
from app.repositories.crm import (
|
||||
CrmConnectionRepository, CrmCustomerSyncRepository, CrmSyncJobRepository,
|
||||
CrmConnectionRepository, CrmCustomerSyncRepository,
|
||||
)
|
||||
from app.services.crm_sync import (
|
||||
CrmManualSyncError, enqueue_crm_sync, process_job, sync_customer_to_crm,
|
||||
|
||||
@@ -16,9 +16,8 @@ limitations under the License.
|
||||
|
||||
import pytest
|
||||
from firebase_admin import credentials
|
||||
from unittest.mock import patch, MagicMock, call, create_autospec
|
||||
from unittest.mock import patch, MagicMock, call
|
||||
from app.services.firebase import initialize_firebase
|
||||
import os
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def mock_logger():
|
||||
|
||||
@@ -20,7 +20,7 @@ from uuid import uuid4
|
||||
from app.models.customer import Customer, LeadStage
|
||||
from app.models.session_to_agent import SessionStatus, SessionToAgent
|
||||
from app.services.conversation_token import VERIFIED_SCOPE
|
||||
from app.models.lead_capture import LeadCaptureConfig, LeadCaptureResponse
|
||||
from app.models.lead_capture import LeadCaptureConfig
|
||||
from app.services.lead_capture import (
|
||||
has_captured_lead, record_lead_capture, _valid_email,
|
||||
)
|
||||
|
||||
@@ -19,8 +19,6 @@ import redis
|
||||
import asyncio
|
||||
from unittest.mock import patch, MagicMock, AsyncMock
|
||||
from app.services.socket_rate_limit import socket_rate_limit
|
||||
from app.core.config import settings
|
||||
from app.core.socketio import sio
|
||||
|
||||
# Test constants
|
||||
TEST_SID = "test_session_id"
|
||||
|
||||
Reference in new issue
Block a user