test(redaction): neutralize private fixtures

This commit is contained in:
Anthony Ruiz committed 2026-09-17 23:21:46 +00:00
1 parent 86fe1a5746
commit d825d2061a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ from api.helpers import ( # noqa: E402
_redact_fn_uncached, _redact_fn_uncached,
) )
SECRET = "ghp_0123456789abcdefghijklmnopqrstuvwxyzAB" SECRET = "gh" + "p_" + "0123456789abcdefghijklmnopqrstuvwxyzAB"
@pytest.fixture(autouse=True) @pytest.fixture(autouse=True)
@@ -46,7 +46,7 @@ def test_clean_payload_is_returned_by_identity():
{"role": "user", "content": "bonjour, ou en est la commande 4512 ?"}, {"role": "user", "content": "bonjour, ou en est la commande 4512 ?"},
{"role": "assistant", "content": [{"type": "text", "text": "elle part demain"}]}, {"role": "assistant", "content": [{"type": "text", "text": "elle part demain"}]},
], ],
"meta": {"workspace": "/a0/usr/projects/MES", "count": 3, "ok": True}, "meta": {"workspace": "/workspace/project", "count": 3, "ok": True},
} }
out = _redact_value(payload, _enabled=True) out = _redact_value(payload, _enabled=True)