From 2f6c31a26e799c0fe765f5d86884c78a03cad949 Mon Sep 17 00:00:00 2001 From: Robert Syrnicki Date: Wed, 7 Oct 2026 16:14:24 +0200 Subject: [PATCH] style: ruff format tests/test_wireguard.py Fixes the CI format check. Co-Authored-By: Claude Opus 5.5 --- tests/test_wireguard.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/test_wireguard.py b/tests/test_wireguard.py index 7a8a43d..ba792f7 100644 --- a/tests/test_wireguard.py +++ b/tests/test_wireguard.py @@ -47,9 +47,11 @@ def test_conf_content_includes_preshared_key_when_present(): assert "PresharedKey = cHJlc2hhcmVkLWtleQ==" in content # Must sit between PublicKey and Endpoint, inside [Peer]. peer_section = content.split("[Peer]\n", 1)[1] - assert peer_section.index("PublicKey") < peer_section.index( - "PresharedKey" - ) < peer_section.index("Endpoint") + assert ( + peer_section.index("PublicKey") + < peer_section.index("PresharedKey") + < peer_section.index("Endpoint") + ) def test_enable_requires_wg_config(tmp_path):