Skip to content

test: Restore responses unit tests#4153

Merged
ashwinb merged 6 commits intollamastack:mainfrom
msager27:restore_responses_unit_tests
Nov 14, 2025
Merged

test: Restore responses unit tests#4153
ashwinb merged 6 commits intollamastack:mainfrom
msager27:restore_responses_unit_tests

Conversation

@msager27
Copy link
Copy Markdown
Contributor

What does this PR do?

Restores the responses unit tests that were inadvertently deleted in PR #4055

Test Plan

I ran the unit tests that I restored. They all passed with one exception:

tests/unit/providers/agents/meta_reference/test_openai_responses.py::test_reuse_mcp_tool_list

AttributeError: module 'llama_stack.providers.utils.tools' has no attribute 'mcp'

It's coming from this line:

@patch("llama_stack.providers.utils.tools.mcp.list_mcp_tools")

The mcp.py module (and __init__.py) exists under tools. There are some 'from mcp ....' imports (mcp package in this case) within it that python may be interpreting as circular imports (or maybe I'm overlooking something).

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 13, 2025
@ashwinb ashwinb changed the title Restore responses unit tests fix: restore responses unit tests Nov 13, 2025
@msager27 msager27 changed the title fix: restore responses unit tests test: Restore responses unit tests Nov 13, 2025
Copy link
Copy Markdown
Contributor

@ashwinb ashwinb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Copy link
Copy Markdown
Contributor

@ashwinb ashwinb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh oh, looks like the tests rotted a bit so we need to fix them. Do you want to do that or do you want me to look into that?

@msager27
Copy link
Copy Markdown
Contributor Author

Ah I see. There was some restructuring that went in right before my PR. I'll take a first stab at fixing the tests.

@ashwinb ashwinb merged commit cc88789 into llamastack:main Nov 14, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants