From f0c4f75a0ccf91567014637b529ccd61ce58b256 Mon Sep 17 00:00:00 2001 From: Edern Deneuville Date: Fri, 11 Sep 2026 14:07:35 +0200 Subject: [PATCH] Test Word equation config mode --- tests/test_config.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/test_config.py b/tests/test_config.py index d664af6..a78819a 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -13,10 +13,19 @@ def test_load_default_config(tmp_path): assert cfg.provider == "ollama" assert cfg.hotkey == "ctrl+alt+a" - assert cfg.math_text_format == "unicode" + assert cfg.math_text_format == "word_equation" assert "Réponds directement" in cfg.system_prompt +def test_accept_word_equation_format(tmp_path): + path = tmp_path / "config.json" + path.write_text(json.dumps({"provider": "ollama", "math_text_format": "word_equation"}), encoding="utf-8") + + cfg = load_config(path) + + assert cfg.math_text_format == "word_equation" + + def test_timeout_zero_disables_timeout(tmp_path): path = tmp_path / "config.json" path.write_text(json.dumps({"provider": "ollama", "request_timeout_seconds": 0}), encoding="utf-8")