Skip to content

test: add direct unit tests for _tool_identity helpers#3101

Merged
seratch merged 1 commit intoopenai:mainfrom
Quratulain-bilal:test/tool-identity-helpers-coverage
May 4, 2026
Merged

test: add direct unit tests for _tool_identity helpers#3101
seratch merged 1 commit intoopenai:mainfrom
Quratulain-bilal:test/tool-identity-helpers-coverage

Conversation

@Quratulain-bilal
Copy link
Copy Markdown
Contributor

The tool_identity module is imported across the runner, tracing, and tool-output trimmer code paths but
had no direct test file. These helpers (tool_qualified_name, tool_trace_name, get_tool_call
*,
get_function_tool_lookup_key, serialize/deserialize, the synthetic-namespace validator) are pure and
easy to cover, including the bare / namespaced / deferred_top_level lookup-key shapes and the
serialize/deserialize round-trip. Adds 29 focused unit tests.

The _tool_identity module is imported across the runner, tracing, and
tool-output trimmer code paths but had no direct test file. These
helpers (tool_qualified_name, tool_trace_name, get_tool_call_*,
get_function_tool_lookup_key, serialize/deserialize, the
synthetic-namespace validator) are pure and easy to cover, including
the bare / namespaced / deferred_top_level lookup-key shapes and the
serialize/deserialize round-trip. Adds 29 focused unit tests.
@seratch
Copy link
Copy Markdown
Member

seratch commented May 4, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@seratch seratch merged commit b80d541 into openai:main May 4, 2026
10 checks passed
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