From 549c87b9263d472684619b680129ce8d257efc26 Mon Sep 17 00:00:00 2001 From: maziggy Date: Wed, 7 Oct 2026 13:48:28 +0200 Subject: [PATCH] Use a made-up token in the query-token redaction tests --- backend/tests/unit/test_query_token_redaction.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/tests/unit/test_query_token_redaction.py b/backend/tests/unit/test_query_token_redaction.py index 840412807..8fefc68f7 100644 --- a/backend/tests/unit/test_query_token_redaction.py +++ b/backend/tests/unit/test_query_token_redaction.py @@ -18,7 +18,8 @@ import pytest from backend.app.core.logging_filters import QueryTokenRedactFilter, redact_query_tokens from backend.app.services.log_reader import sanitize_log_content -TOKEN = "M8qxtTy4sHgSkUhAwwrOHSji8stuLIq0" +# Made up. Never paste a token from a real log here, expired or not. +TOKEN = "fake-test-token" def _record(msg: str, args) -> logging.LogRecord: