]> tinc-vpn.org Git - tinc/commitdiff
Python formatting fixes
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 28 Mar 2026 14:57:37 +0000 (15:57 +0100)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 28 Mar 2026 15:13:10 +0000 (16:13 +0100)
test/integration/cmd_keys.py
test/integration/cmd_misc.py
test/integration/cmd_sign_verify.py
test/integration/commandline.py
test/integration/testlib/template.py

index 825f079e88131e205487779df9853b2d71f7bc75..717a84a15c56661275a835108cb60148b553929f 100755 (executable)
@@ -13,7 +13,6 @@ from testlib.feature import Feature
 from testlib.proc import Tinc
 from testlib.test import Test
 
-
 TEST_DATA = b"foo bar baz"
 
 
index 927f56704fc30b2164a34fbc6ebcd74c1b40c2ec..3b7b7295f0422d4a75382220360ac2c2f1a5177c 100755 (executable)
@@ -1,6 +1,7 @@
 #!/usr/bin/env python3
 
 """Test miscellaneous commands."""
+
 import os
 import typing as T
 
index eefa3eeb6bbda5515ff1d46814d153f5121839d5..2e6959900e9dddc29f1c6dd7090bcf1073aa882a 100755 (executable)
@@ -26,9 +26,7 @@ SIGNED_BYTES = """Signature = foo 1653397516 \
 T8Bjg7dc7IjsCrZQC/20qLRsWPlrbthnjyDHQM0BMLoTeAHbLt0fxP5CbTy7Cifgg7P0K179GeahBFsnaIr4MA\n\
 fake testing data\n\
 hello there\n\
-""".encode(
-    "utf-8"
-)
+""".encode("utf-8")
 
 RAW_DATA = tempfile.mktemp()
 
index 411a0088de156f74fa265ba7dfd7cd967893c01d..474a9d36dacaf9e157490b0a8c122f1926b34b85 100755 (executable)
@@ -50,13 +50,13 @@ with Test("commandline flags") as context:
     )
 
     for code, flags in tincd_flags:
-        COOKIE = util.random_string(10)
-        server = node.tincd(*flags, env={"COOKIE": COOKIE})
+        cookie = util.random_string(10)
+        server = node.tincd(*flags, env={"COOKIE": cookie})
 
         if not code:
             log.info("waiting for tincd to come up")
             env = node[Script.TINC_UP].wait().env
-            check.equals(COOKIE, env["COOKIE"])
+            check.equals(cookie, env["COOKIE"])
 
         log.info("stopping tinc")
         node.cmd("stop", code=code)
index 83d2f853a8e6a282bfac00023c5dcb262685c561..5ea542cf027ecd1a92e5b81b9914c58393026ef7 100755 (executable)
@@ -7,7 +7,6 @@ from string import Template
 from . import path
 from .notification import notifications
 
-
 _CMD_VARS = os.linesep.join([f"set {var}={val}" for var, val in path.env.items()])