From 710b972199f9ddf8cc9fba813d3f60b51cd3a8df Mon Sep 17 00:00:00 2001 From: Desel72 Date: Mon, 23 Mar 2026 14:15:54 +0000 Subject: [PATCH] fix: remove tool count limit test (limit check no longer exists) --- .../tools/test_api_tools_manage_service.py | 44 ------------------- 1 file changed, 44 deletions(-) diff --git a/api/tests/test_containers_integration_tests/services/tools/test_api_tools_manage_service.py b/api/tests/test_containers_integration_tests/services/tools/test_api_tools_manage_service.py index 622a02db81..3ee6b370b4 100644 --- a/api/tests/test_containers_integration_tests/services/tools/test_api_tools_manage_service.py +++ b/api/tests/test_containers_integration_tests/services/tools/test_api_tools_manage_service.py @@ -685,47 +685,3 @@ class TestApiToolManageService: schema="schema", ) - def test_create_api_tool_provider_tool_count_exceeds_limit( - self, flask_req_ctx_with_containers, db_session_with_containers: Session, mock_external_service_dependencies - ): - """Test creation raises ValueError when tool count exceeds limit.""" - fake = Faker() - account, tenant = self._create_test_account_and_tenant( - db_session_with_containers, mock_external_service_dependencies - ) - - # Create a schema with many paths to exceed the 20-tool limit - paths = {} - for i in range(21): - paths[f"/test{i}"] = { - "get": { - "operationId": f"testOp{i}", - "summary": f"Test {i}", - "responses": {"200": {"description": "Success"}}, - } - } - - import json - - schema = json.dumps( - { - "openapi": "3.0.0", - "info": {"title": "Test", "version": "1.0.0"}, - "servers": [{"url": "https://api.example.com"}], - "paths": paths, - } - ) - - with pytest.raises(ValueError, match="tools count exceeds the limit"): - ApiToolManageService.create_api_tool_provider( - user_id=account.id, - tenant_id=tenant.id, - provider_name=fake.unique.word(), - icon={"content": "🔧", "background": "#FFF"}, - credentials={"auth_type": "none"}, - schema_type=ApiProviderSchemaType.OPENAPI, - schema=schema, - privacy_policy="", - custom_disclaimer="", - labels=[], - )