test(exa_search): add unit tests for the ExaSearchChannel doctor branches - #571
Closed
nyxst4ck wants to merge 1 commit into
Closed
test(exa_search): add unit tests for the ExaSearchChannel doctor branches#571nyxst4ck wants to merge 1 commit into
nyxst4ck wants to merge 1 commit into
Conversation
Owner
|
感谢补充 ExaSearchChannel Doctor 分支测试。merged #577 已在 tests/test_channels.py 覆盖 mcporter 缺失、配置错误、精确 server name、editor imports 与未配置路径,并同步了当前 Exa 工具契约,因此关闭此重复测试 PR。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Dedicated offline tests for the
exa_searchchannel — the channel had no dedicated test file. 6 tests covering:can_handle: alwaysFalse(search-only channel), pinned so a future URL route can't slip in silentlycheck()all five branches:offwith both install prescriptions (npm install -g mcporter+mcporter config add exa)error(and staleactive_backendcleared)exapresent in config →warn, neverok— Doctor never probes the remote MCP, so config presence alone must not be sold as usablewarn(credential-read boundary)offwith the exact add commandHow
inspect_mcporter_configandshutil.whichare stubbed at the channel module, so every branch runs offline and deterministic — same approach as the merged channel-test series.Test plan
pytest tests/test_exa_search_channel.py -v→ 6 passedtest_private_file_writes.pyare pre-existing Windows symlink-permission failures on my machine, untouched by this PR)Follow-up to #331 — continues the dedicated channel coverage series after rss (#360), github (#361), web (#363), reddit (#364), xueqiu (#365), v2ex (#366) and youtube (#367).