feat(mcp): expose current user identity in get_instance_info and add created_by_fk filter (#37967)

This commit is contained in:
Amin Ghadersohi
2026-02-17 07:11:34 -05:00
committed by GitHub
parent 5cd829f13c
commit f7218e7a19
9 changed files with 433 additions and 10 deletions

View File

@@ -354,6 +354,17 @@ class TestParseRequestDecorator:
name: str
count: int
@pytest.fixture(autouse=True)
def _enable_parse_request(self):
"""Ensure MCP_PARSE_REQUEST_ENABLED=True for all parsing tests."""
from unittest.mock import patch
with patch(
"superset.mcp_service.utils.schema_utils._is_parse_request_enabled",
return_value=True,
):
yield
def test_decorator_with_json_string_async(self):
"""Should parse JSON string request in async function."""
from unittest.mock import MagicMock, patch