mirror of
https://github.com/apache/superset.git
synced 2026-04-21 09:04:38 +00:00
feat(mcp): expose current user identity in get_instance_info and add created_by_fk filter (#37967)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user