diff --git a/tests/test_redact_large_string_cache.py b/tests/test_redact_large_string_cache.py index d125adc1..dfcbbf21 100644 --- a/tests/test_redact_large_string_cache.py +++ b/tests/test_redact_large_string_cache.py @@ -32,7 +32,7 @@ from api.helpers import ( # noqa: E402 _redact_fn_uncached, ) -SECRET = "ghp_0123456789abcdefghijklmnopqrstuvwxyzAB" +SECRET = "gh" + "p_" + "0123456789abcdefghijklmnopqrstuvwxyzAB" @pytest.fixture(autouse=True) diff --git a/tests/test_redact_value_no_copy_when_clean.py b/tests/test_redact_value_no_copy_when_clean.py index da3ca30e..210217bf 100644 --- a/tests/test_redact_value_no_copy_when_clean.py +++ b/tests/test_redact_value_no_copy_when_clean.py @@ -46,7 +46,7 @@ def test_clean_payload_is_returned_by_identity(): {"role": "user", "content": "bonjour, ou en est la commande 4512 ?"}, {"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)