remove: drop Boss直聘 channel (non-functional) (#135)
Boss直聘 channel removed entirely — upstream mcp-bosszp triggers account-level bans, making it unusable in practice. Removed from: channel registry, README (CN/EN), install.md, SKILL.md, tests, credits. Co-authored-by: Panniantong <panniantong@users.noreply.github.com>
This commit is contained in:
@@ -115,7 +115,6 @@ def test_channel_can_handle_contract():
|
||||
"xiaohongshu": "https://www.xiaohongshu.com/explore/123",
|
||||
"douyin": "https://www.douyin.com/video/123",
|
||||
"linkedin": "https://www.linkedin.com/in/test",
|
||||
"bosszhipin": "https://www.zhipin.com/web/geek/job?query=python",
|
||||
"weibo": "https://weibo.com/u/1749127163",
|
||||
"rss": "https://example.com/feed.xml",
|
||||
"exa_search": "https://example.com",
|
||||
|
||||
@@ -5,7 +5,6 @@ import shutil
|
||||
import subprocess
|
||||
|
||||
from agent_reach.channels import get_all_channels, get_channel
|
||||
from agent_reach.channels.bosszhipin import BossZhipinChannel
|
||||
from agent_reach.channels.xiaohongshu import XiaoHongShuChannel
|
||||
|
||||
|
||||
@@ -26,25 +25,6 @@ class TestChannelRegistry:
|
||||
assert "twitter" in names
|
||||
|
||||
|
||||
class TestBossZhipinChannel:
|
||||
def test_reports_ok_when_configured_and_logged_in(self, monkeypatch):
|
||||
monkeypatch.setattr(shutil, "which", lambda _: "/opt/homebrew/bin/mcporter")
|
||||
|
||||
def fake_run(cmd, **kwargs):
|
||||
if cmd[:4] == ["/opt/homebrew/bin/mcporter", "config", "get", "bosszhipin"]:
|
||||
return subprocess.CompletedProcess(cmd, 0, '{"name":"bosszhipin"}', "")
|
||||
if cmd[:3] == ["/opt/homebrew/bin/mcporter", "call", "bosszhipin.get_login_info_tool"]:
|
||||
return subprocess.CompletedProcess(cmd, 0, '{"is_logged_in": true}', "")
|
||||
raise AssertionError(f"unexpected command: {cmd}")
|
||||
|
||||
monkeypatch.setattr(subprocess, "run", fake_run)
|
||||
|
||||
assert BossZhipinChannel().check() == (
|
||||
"ok",
|
||||
"完整可用(职位搜索、登录态检查、向 HR 打招呼)",
|
||||
)
|
||||
|
||||
|
||||
class TestXiaoHongShuChannel:
|
||||
def test_reports_ok_when_server_health_is_ok(self, monkeypatch):
|
||||
monkeypatch.setattr(shutil, "which", lambda _: "/opt/homebrew/bin/mcporter")
|
||||
|
||||
Reference in New Issue
Block a user