test: add regression test for mock provider (#40)#206
Conversation
|
Here is my review. Code Review:
|
- Remove unused monkeypatch parameter from regression test - Rephrase changelog to accurately reflect this PR adds a test, not the fix itself
Code Review:
|
|
Good — the patch target is correct. Now I have all the information needed for a review. Let me compile it. SummaryPR adds a regression test ( Issues Found1. [STYLE] Changelog entry belongs under
|
|
🎉 Congratulations @himanshu231204! Your pull request has been successfully merged into main. 🚀 Thank you for contributing to OpenAgentHQ and helping improve the project. We truly appreciate your contribution and hope to see you back with more amazing PRs! Happy Open Sourcing! ❤️ |



Summary
Adds an explicit regression test verifying that --llm-provider mock never instantiates an OpenAIProvider.
The underlying bug (commit 8fed362) was already fixed by switching _create_provider() to use the factory pattern (get_llm_provider(config)), but lacked a test that directly asserts the OpenAI client is never constructed — only checking the return type.
Changes
Test Results
Closes #40