Files
DeepTutor/tests/services/memory/test_update_facts_json.py
Bingxi Zhao (Frank) 3a19752a44 release: v1.5.3
Maintenance release on top of v1.5.2.

- Themeable code blocks: Settings → Appearance gains a Code blocks panel
  (syntax theme, line numbers, wrapping) applied across chat, Book, and
  Co-Writer.
- My Agents connects four more coding CLIs — Gemini, Kimi, opencode, and
  MiMo Code — alongside Claude Code and Codex.
- Atlas Cloud joins as an LLM provider (34 bindings total); DashScope text
  embeddings route correctly and encoding_format is omitted for strict
  OpenAI-compatible gateways.
- Reliability sweep: RAG coexists with an exclusive knowledge capability
  (#650), DeepSeek DSML tool-call parsing (#666), autoscroll release (#649),
  idempotent write_memory (#647), seeded persona presets (#659), plus Book
  WebSocket streaming, partner filename/split fixes, Visualize fences, and
  CLI UTF-8 input hardening.
- Packaging: cap requires-python to >=3.11,<3.14 so pip refuses 3.14 with a
  readable message instead of a failed source build (#664).

Release notes: assets/releases/ver1-5-3.md
2026-07-24 03:06:58 +08:00

14 lines
489 B
Python

"""Regression: memory update fact JSON tolerates trailing brace prose."""
from __future__ import annotations
from deeptutor.services.memory.consolidator.modes import update as update_mode
def test_parse_facts_tolerates_trailing_brace_prose() -> None:
raw = '{"facts":[{"text":"hello","section":"Notes","refs":["a:b"]}]} trailing {note}'
facts = update_mode._parse_facts(raw)
assert len(facts) == 1
assert facts[0].text == "hello"
assert facts[0].section == "Notes"