test(linkedin): add unit tests for the LinkedInChannel doctor branches - #570
Closed
nyxst4ck wants to merge 1 commit into
Closed
test(linkedin): add unit tests for the LinkedInChannel doctor branches#570nyxst4ck wants to merge 1 commit into
nyxst4ck wants to merge 1 commit into
Conversation
Owner
|
感谢补充 LinkedIn Doctor 分支测试。merged #577 已按当前 mcp-server-linkedin、uvx 和 stdio 契约覆盖缺失、配置错误、未安装 uvx、已配置但未实测及 editor imports 等路径;本 PR 仍断言旧 linkedin-scraper-mcp 提示,因此作为已取代测试关闭。 |
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
linkedinchannel — the channel had no dedicated test file. 6 tests covering:can_handle: linkedin.com host match (case-insensitive) and rejection of lookalike hostscheck()all five branches:offwith the Jina Reader fallback hinterror(and staleactive_backendcleared)warn, neverok— Doctor must not claim usability without a live probewarn(credential-read boundary)offwith the exactmcporter config add linkedinprescriptionHow
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_linkedin_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).