Keep non-secret Photos account names out of redaction patterns

This commit is contained in:
Pigway
2026-10-05 08:44:19 +08:00
parent f3d9a1ae97
commit ec1623cbad
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -18,6 +18,7 @@ def test_connection_stores_session_only(settings, monkeypatch):
assert stat.S_IMODE(p.path.stat().st_mode) == 0o600
assert "test-password" not in p.path.read_text()
assert p.sid() == "test-session"
assert settings.sanitize({"name": "pigway-frame-flow"})["name"] == "pigway-frame-flow"
assert (
settings.sanitize({"message": "test-password test-session"})["message"]
== "[REDACTED] [REDACTED]"