Format Synology Photos test for Ruff CI

This commit is contained in:
Pigway
2026-10-07 16:50:52 +08:00
parent 28b154091c
commit 1e13977ec2
+3 -1
View File
@@ -18,7 +18,9 @@ def test_connection_stores_session_only(settings, monkeypatch):
assert stat.S_IMODE(p.path.stat().st_mode) == 0o600 assert stat.S_IMODE(p.path.stat().st_mode) == 0o600
assert "test-password" not in p.path.read_text() assert "test-password" not in p.path.read_text()
assert p.sid() == "test-session" assert p.sid() == "test-session"
assert settings.sanitize({"name": "pigway-frame-flow"})["name"] == "pigway-frame-flow" assert (
settings.sanitize({"name": "pigway-frame-flow"})["name"] == "pigway-frame-flow"
)
assert ( assert (
settings.sanitize({"message": "test-password test-session"})["message"] settings.sanitize({"message": "test-password test-session"})["message"]
== "[REDACTED] [REDACTED]" == "[REDACTED] [REDACTED]"