test: use a neutral character name in the personality seed test

The repo already strips personal profile references (35aa134); a real character
name does not belong in a committed test fixture.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
alexpolo1
2026-08-28 00:47:23 +02:00
parent 371abafa35
commit 8aa150d6a3

View File

@@ -177,12 +177,12 @@ def test_personality_seed_is_stable_across_processes():
"""
from utils.stealth import get_personality_seed
assert get_personality_seed("paladalla") == get_personality_seed("paladalla")
assert get_personality_seed("testchar") == get_personality_seed("testchar")
assert get_personality_seed("a") != get_personality_seed("b")
# Known-good value pins it against a silent hashing change.
import hashlib
expected = int.from_bytes(hashlib.sha256(b"paladalla").digest()[:4], "big")
assert get_personality_seed("paladalla") == expected
expected = int.from_bytes(hashlib.sha256(b"testchar").digest()[:4], "big")
assert get_personality_seed("testchar") == expected
def test_session_bias_is_constant_and_bounded():