mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
fix(mcp): detect unknown chart config fields and suggest correct ones (#38848)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
committed by
GitHub
parent
04e07acf98
commit
16f5a2a41a
@@ -119,7 +119,7 @@ class TestHandlebarsChartConfig:
|
||||
)
|
||||
|
||||
def test_extra_fields_forbidden(self) -> None:
|
||||
with pytest.raises(ValueError, match="Extra inputs"):
|
||||
with pytest.raises(ValueError, match="Unknown field 'unknown_field'"):
|
||||
HandlebarsChartConfig(
|
||||
chart_type="handlebars",
|
||||
handlebars_template="<p>test</p>",
|
||||
|
||||
Reference in New Issue
Block a user