Format Synology Photos test for Ruff CI
This commit is contained in:
@@ -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]"
|
||||||
|
|||||||
Reference in New Issue
Block a user