feat: Complete code integration of modules (#18)

The complete code integration is done.

Co-authored-by: Sagnik <sagnik7896@gmail.com>
Reviewed-on: #18
This commit was merged in pull request #18.
This commit is contained in:
2026-04-12 19:20:14 +05:30
parent 248d92042f
commit 4645ff737b
27 changed files with 3393 additions and 50 deletions

View File

@@ -0,0 +1,20 @@
from __future__ import annotations
import os
from fastapi.testclient import TestClient
os.environ.setdefault("VELOCITY_JWT_SECRET", "test-secret")
from backend.main import app
def test_crm_websocket_ack_roundtrip() -> None:
with TestClient(app) as client:
with client.websocket_connect("/ws/crm") as websocket:
first = websocket.receive_json()
assert first["type"] == "crm_presence"
websocket.send_text("ping")
second = websocket.receive_json()
assert second["type"] == "crm_ack"
assert second["data"] == "ping"