Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
Fix linting
haxzie5fefa12f97b7
diff --git a/python/tests/test_schema_parser.py b/python/tests/test_schema_parser.pyindex bb6a5e965..21c49e6e7 100644--- a/python/tests/test_schema_parser.py+++ b/python/tests/test_schema_parser.py@@ -5,8 +5,6 @@ This module tests the core schema parsing functionality in composio.utils.sharedparticularly focusing on the required field propagation bug that was fixed."""-import json-import typing as timport pytestfrom pydantic import BaseModel@@ -41,7 +39,7 @@ class TestJsonSchemaToPydanticField:)assert field_name == "test_field"- assert field_type == str+ assert field_type is strassert field_info.default is PydanticUndefined # Required field markerdef test_simple_optional_field(self):@@ -60,7 +58,7 @@ class TestJsonSchemaToPydanticField:)assert field_name == "optional_field"- assert field_type == str+ assert field_type is strassert field_info.default == "default_value"@pytest.mark.unit@@ -485,7 +483,7 @@ class TestJsonSchemaToPydanticType:json_schema = {} # No type specifiedresult = json_schema_to_pydantic_type(json_schema)- assert result == str+ assert result is strdef test_unsupported_type_error(self):"""Test that unsupported types raise appropriate error."""@@ -523,8 +521,8 @@ class TestJsonSchemaToFieldsDict:name_type, name_field = fields_dict["name"]age_type, age_field = fields_dict["age"]- assert name_type == str- assert age_type == int+ assert name_type is str+ assert age_type is intassert name_field.default is PydanticUndefined # Requiredassert age_field.default is None # Optionaldiff --git a/python/tests/test_schema_parser_simple.py b/python/tests/test_schema_parser_simple.pyindex 63fc3be93..b77ef0612 100644--- a/python/tests/test_schema_parser_simple.py+++ b/python/tests/test_schema_parser_simple.py@@ -32,7 +32,7 @@ def test_basic_functionality():)assert field_name == "test_field"- assert field_type == str+ assert field_type is strassert field_info.default is PydanticUndefined # Required field markerprint("✅ Test 1 passed: Simple required field")