Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

test: review-identified improvements for PR #2641 (#2652)

LearningCircuit278516b67673
diff --git a/tests/security/test_log_sanitizer.py b/tests/security/test_log_sanitizer.py
index d0375c4e10..fcbaf26422 100644
--- a/tests/security/test_log_sanitizer.py
+++ b/tests/security/test_log_sanitizer.py
@@ -61,6 +61,9 @@ class TestStripControlChars:
def test_strips_rlo_override(self):
assert strip_control_chars("hello\u202eworld") == "helloworld"
+ def test_strips_arabic_letter_mark(self):
+ assert strip_control_chars("hello\u061cworld") == "helloworld"
+
def test_strips_zero_width_space(self):
assert strip_control_chars("hello\u200bworld") == "helloworld"
diff --git a/tests/web/auth/test_auth_routes.py b/tests/web/auth/test_auth_routes.py
index e857f37a14..1f5f8b53f5 100644
--- a/tests/web/auth/test_auth_routes.py
+++ b/tests/web/auth/test_auth_routes.py
@@ -619,6 +619,10 @@ class TestChangePassword:
with client.session_transaction() as sess:
assert "username" not in sess
+ mock_db.change_password.assert_called_once_with(
+ "testuser", "OldPass123", "NewStrongP4ss!"
+ )
+
def test_returns_401_for_wrong_current_password(self):
"""Should return 401 when current password is incorrect."""
app = Flask(__name__)