@devries-cameron20 / composio-1 / commits / 5fefa12f9
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Fix linting

haxzie committed Sep 29, 2025 at 16:43 UTC 5fefa12f97b793c8ac699684cbb7db92cb90986f
2 files changed +6 -8
python/tests/test_schema_parser.py
+5 -7
@@ -5,8 +5,6 @@ This module tests the core schema parsing functionality in composio.utils.shared
5 particularly focusing on the required field propagation bug that was fixed.
6 """
7
8 -import json
9 -import typing as t
8
9 import pytest
10 from pydantic import BaseModel
@@ -41,7 +39,7 @@ class TestJsonSchemaToPydanticField:
39 )
40
41 assert field_name == "test_field"
44 - assert field_type == str
42 + assert field_type is str
43 assert field_info.default is PydanticUndefined # Required field marker
44
45 def test_simple_optional_field(self):
@@ -60,7 +58,7 @@ class TestJsonSchemaToPydanticField:
58 )
59
60 assert field_name == "optional_field"
63 - assert field_type == str
61 + assert field_type is str
62 assert field_info.default == "default_value"
63
64 @pytest.mark.unit
@@ -485,7 +483,7 @@ class TestJsonSchemaToPydanticType:
483 json_schema = {} # No type specified
484
485 result = json_schema_to_pydantic_type(json_schema)
488 - assert result == str
486 + assert result is str
487
488 def test_unsupported_type_error(self):
489 """Test that unsupported types raise appropriate error."""
@@ -523,8 +521,8 @@ class TestJsonSchemaToFieldsDict:
521 name_type, name_field = fields_dict["name"]
522 age_type, age_field = fields_dict["age"]
523
526 - assert name_type == str
527 - assert age_type == int
524 + assert name_type is str
525 + assert age_type is int
526 assert name_field.default is PydanticUndefined # Required
527 assert age_field.default is None # Optional
528
python/tests/test_schema_parser_simple.py
+1 -1
@@ -32,7 +32,7 @@ def test_basic_functionality():
32 )
33
34 assert field_name == "test_field"
35 - assert field_type == str
35 + assert field_type is str
36 assert field_info.default is PydanticUndefined # Required field marker
37 print("✅ Test 1 passed: Simple required field")
38