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
@@ -25,7 +25,7 @@ from fastapi import FastAPI
|
||||
|
||||
from app.api import mcp_tool as mcp_api
|
||||
from app.core.config import settings
|
||||
from app.core.auth import get_current_user, require_permissions
|
||||
from app.core.auth import get_current_user
|
||||
from app.database import get_db
|
||||
from app.models.user import User
|
||||
from app.models.role import Role
|
||||
@@ -34,7 +34,6 @@ from app.models.agent import Agent, AgentType
|
||||
from app.models.mcp_tool import MCPTransportType
|
||||
from app.repositories.mcp_tool import MCPToolRepository
|
||||
from app.models.schemas.mcp_tool import (
|
||||
MCPToolCreate, MCPToolUpdate, MCPToolToAgentCreate,
|
||||
MAX_USAGE_GUIDANCE_CHARS, SECRET_MASK,
|
||||
)
|
||||
from app.models.ticket_settings import OrganizationTicketSettings
|
||||
@@ -108,7 +107,7 @@ def test_create_and_get_mcp_tool(client: TestClient, db):
|
||||
# Disable enterprise gating for tests
|
||||
mcp_api.HAS_ENTERPRISE = False
|
||||
# Fetch the user created in fixture
|
||||
user = db.query(User).first()
|
||||
db.query(User).first()
|
||||
|
||||
# Create an MCP tool
|
||||
payload = {
|
||||
|
||||
Reference in new issue
Block a user