Skip to content

test: cover real Handoff object branch in visualization#3100

Merged
seratch merged 1 commit intoopenai:mainfrom
Quratulain-bilal:test/visualization-real-handoff-coverage
May 4, 2026
Merged

test: cover real Handoff object branch in visualization#3100
seratch merged 1 commit intoopenai:mainfrom
Quratulain-bilal:test/visualization-real-handoff-coverage

Conversation

@Quratulain-bilal
Copy link
Copy Markdown
Contributor

The existing visualization tests use Mock(spec=Handoff) for Handoff branches and real Agent objects for
Agent branches. The isinstance(handoff, Handoff) paths in get_all_nodes / get_all_edges were never
exercised against a real Handoff produced by the public handoff() factory. Adds a test that builds an
Agent with a real Handoff and asserts the resulting DOT contains the expected node and edge.

Existing visualization tests use Mock(spec=Handoff) for the Handoff
branches and real Agent objects for the Agent branches. The
isinstance(handoff, Handoff) paths in get_all_nodes / get_all_edges
were never exercised against a real Handoff produced by the public
handoff() factory. Add a test that builds an Agent with a real
Handoff in handoffs and asserts the resulting DOT contains the
expected node and edge.
@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. What shall we delve into next?

ℹ️ 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 54ec5f0 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