Skip to content

test: add unit tests for pydantic utils (none_to_omit, parse_pydantic_error)#3784

Open
eeshsaxena wants to merge 2 commits into
ComposioHQ:nextfrom
eeshsaxena:test/pydantic-utils
Open

test: add unit tests for pydantic utils (none_to_omit, parse_pydantic_error)#3784
eeshsaxena wants to merge 2 commits into
ComposioHQ:nextfrom
eeshsaxena:test/pydantic-utils

Conversation

@eeshsaxena

Copy link
Copy Markdown
Contributor

Description

composio/utils/pydantic.py had no dedicated test module. This adds tests/test_pydantic_utils.py covering:

  • none_to_omit converting None to the omit sentinel while passing through other values (including falsy 0/"")
  • parse_pydantic_error listing missing fields, reporting type errors with the offending parameter, and handling both together

No source changes.

Verification

pytest tests/test_pydantic_utils.py - 5 passed. ruff check / ruff format --check clean.

@vercel

vercel Bot commented Jul 9, 2026

Copy link
Copy Markdown

eeshsaxena is attempting to deploy a commit to the Composio Team on Vercel.

A member of the Team first needs to authorize it.

@jkomyno

Copy link
Copy Markdown
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants