refactor(backend): update API routes and service layer
- Update agent router/service/repository with new endpoints - Update auth routes with phone-based authentication - Update users service with new phone lookup - Update schedule_items with new schemas - Update message schemas with visibility support - Update settings with new automation scheduler config - Update CLI with new commands - Update tests to match new API contracts
This commit is contained in:
@@ -4,11 +4,16 @@ import socket
|
||||
import threading
|
||||
import time
|
||||
|
||||
import pytest
|
||||
from playwright.sync_api import sync_playwright
|
||||
import uvicorn
|
||||
|
||||
from app import app
|
||||
from v1.infra.dependencies import get_redis_service
|
||||
|
||||
pytest.skip(
|
||||
"infra health endpoint removed from v1 API",
|
||||
allow_module_level=True,
|
||||
)
|
||||
|
||||
|
||||
class _FakeService:
|
||||
@@ -52,8 +57,6 @@ def _start_server(host: str, port: int):
|
||||
|
||||
|
||||
def test_infra_health_e2e() -> None:
|
||||
app.dependency_overrides[get_redis_service] = lambda: _FakeService()
|
||||
|
||||
host = "127.0.0.1"
|
||||
port = _find_free_port()
|
||||
server, thread = _start_server(host, port)
|
||||
|
||||
Reference in New Issue
Block a user