personal memory agent
0

Configure Feed

Select the types of activity you want to include in your feed.

solstone / tests / test_chat_schema.py
738 B 28 lines
1# SPDX-License-Identifier: AGPL-3.0-only 2# Copyright (c) 2026 sol pbc 3 4from __future__ import annotations 5 6import json 7from pathlib import Path 8 9REPO_ROOT = Path(__file__).resolve().parents[1] 10CHAT_SCHEMA_PATH = REPO_ROOT / "solstone" / "talent" / "chat.schema.json" 11 12 13def _load_chat_schema() -> dict: 14 return json.loads(CHAT_SCHEMA_PATH.read_text(encoding="utf-8")) 15 16 17def test_chat_schema_has_no_offer_affordance() -> None: 18 schema = _load_chat_schema() 19 20 assert "offer" not in schema["properties"] 21 assert "offer" not in schema["required"] 22 23 24def test_chat_schema_has_no_draft_affordance() -> None: 25 schema = _load_chat_schema() 26 27 assert "draft" not in schema["properties"] 28 assert "draft" not in schema["required"]