Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
minor fix: test cases for alibabacloud mysql and chinese translations (#26902)
NeatGuyCoding49df9ceaf369
diff --git a/api/tests/unit_tests/core/rag/datasource/vdb/alibabacloud_mysql/test_alibabacloud_mysql_vector.py b/api/tests/unit_tests/core/rag/datasource/vdb/alibabacloud_mysql/test_alibabacloud_mysql_vector.pyindex 44fe272c8c4..8ccd739e64f 100644--- a/api/tests/unit_tests/core/rag/datasource/vdb/alibabacloud_mysql/test_alibabacloud_mysql_vector.py+++ b/api/tests/unit_tests/core/rag/datasource/vdb/alibabacloud_mysql/test_alibabacloud_mysql_vector.py@@ -110,19 +110,6 @@ class TestAlibabaCloudMySQLVector(unittest.TestCase):assert mock_cursor.execute.call_count >= 3 # CREATE TABLE + 2 indexesmock_redis.set.assert_called_once()- def test_config_validation(self):- """Test configuration validation."""- # Test missing required fields- with pytest.raises(ValueError):- AlibabaCloudMySQLVectorConfig(- host="", # Empty host should raise error- port=3306,- user="test",- password="test",- database="test",- max_connection=5,- )-@patch("core.rag.datasource.vdb.alibabacloud_mysql.alibabacloud_mysql_vector.mysql.connector.pooling.MySQLConnectionPool")@@ -718,5 +705,29 @@ class TestAlibabaCloudMySQLVector(unittest.TestCase):mock_cursor.fetchone.side_effect = [{"VERSION()": "8.0.36"}, {"vector_support": True}]+ "invalid_config_override",+ [+ {"host": ""}, # Test empty host+ {"port": 0}, # Test invalid port+ {"max_connection": 0}, # Test invalid max_connection+ ],+)+def test_config_validation_parametrized(invalid_config_override):+ """Test configuration validation for various invalid inputs using parametrize."""+ config = {+ "host": "localhost",+ "port": 3306,+ "user": "test",+ "password": "test",+ "database": "test",+ "max_connection": 5,+ }+ config.update(invalid_config_override)++ with pytest.raises(ValueError):+ AlibabaCloudMySQLVectorConfig(**config)++if __name__ == "__main__":unittest.main()diff --git a/web/i18n/zh-Hans/common.ts b/web/i18n/zh-Hans/common.tsindex e73ac4cc6be..98ffb497820 100644--- a/web/i18n/zh-Hans/common.ts+++ b/web/i18n/zh-Hans/common.ts@@ -20,7 +20,7 @@ const translation = {save: '保存',yes: '是',no: '否',- deleteConfirmTitle: '删除?',+ deleteConfirmTitle: '删除?',confirmAction: '请确认您的操作。',saveAndEnable: '保存并启用',edit: '编辑',