mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 01:19:31 +08:00
Ship folder-based workspaces and data migration, daily practice, redesigned provider and model settings, and streaming conversation improvements. Synchronize README translations and document the archive/permanent-delete upgrade behavior in assets/releases/ver1-6-9.md. Reduce initial JavaScript by deduplicating English resources and loading animation features after hydration. Keep the existing route size budgets. Update regression fixtures and browser audits for scoped URLs and the new settings and learning interfaces.
26 lines
933 B
Python
26 lines
933 B
Python
"""Local and remote subagent connections exclude Partners."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
|
|
from deeptutor.knowledge.manager import KnowledgeBaseManager
|
|
|
|
|
|
def test_partners_are_selected_directly_not_registered(tmp_path: Path) -> None:
|
|
import pytest
|
|
|
|
manager = KnowledgeBaseManager(base_dir=str(tmp_path / "kbs"))
|
|
with pytest.raises(ValueError, match="Ask partner"):
|
|
manager.register_subagent_connection("Panda Kate", "partner")
|
|
|
|
|
|
def test_register_cli_connection_has_no_partner_id(tmp_path: Path) -> None:
|
|
manager = KnowledgeBaseManager(base_dir=str(tmp_path / "kbs"))
|
|
|
|
manager.register_subagent_connection("MyClaude", "claude_code", cwd="")
|
|
meta = manager.get_metadata("MyClaude")
|
|
assert meta["agent_kind"] == "claude_code"
|
|
# Empty partner_id is dropped from the curated metadata (None-stripped).
|
|
assert "partner_id" not in meta or not meta["partner_id"]
|