"""The notes capability states the shared maths rule in both languages.""" from __future__ import annotations from types import SimpleNamespace import pytest from deeptutor.capabilities.notes import capability from deeptutor.services.prompt import shared_fragment @pytest.mark.parametrize("language", ["en", "zh"]) def test_notes_instruction_uses_the_shared_math_rule(language: str) -> None: # The system block is static text read from prompts//system.md. context = SimpleNamespace(metadata={"note_document_id": "page"}, session_id="s") block = capability.NotesCapability().system_block(context, language=language, prompts={}) assert shared_fragment("math_latex", language) in block.content assert "mermaid" in block.content assert "{{shared:" not in block.content