]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Move param to isctest.util
authorNicki Křížek <nicki@isc.org>
Fri, 6 Jun 2025 08:46:42 +0000 (10:46 +0200)
committerNicki Křížek <nicki@isc.org>
Thu, 19 Jun 2025 12:11:28 +0000 (14:11 +0200)
bin/tests/system/isctest/util.py
bin/tests/system/kasp/tests_kasp.py

index 904e088ff6799a3e6d8df1a09e93f5072a153b89..eec03ae72435af29a27bf33a5ea8a69b2dcb69a1 100644 (file)
@@ -10,6 +10,7 @@
 # information regarding copyright ownership.
 
 import dns.zone
+import pytest
 
 
 def zone_contains(
@@ -40,3 +41,9 @@ def file_contents_contain(file, substr):
             if f"{substr}" in line:
                 return True
     return False
+
+
+def param(*args, **kwargs):
+    if "id" not in kwargs:
+        kwargs["id"] = args[0]  # use first argument  as test ID
+    return pytest.param(*args, **kwargs)
index e6bc020554a272ffa9a0bceee25e8290d54e0820..2440914995af7521d7a5371a690b2ccb3fb6221e 100644 (file)
@@ -26,6 +26,7 @@ from isctest.kasp import (
     KeyProperties,
     KeyTimingMetadata,
 )
+from isctest.util import param
 from isctest.vars.algorithms import ECDSAP256SHA256, ECDSAP384SHA384
 
 pytestmark = pytest.mark.extra_artifacts(
@@ -129,12 +130,6 @@ KASP_INHERIT_TSIG_SECRET = {
 }
 
 
-def param(*args, **kwargs):
-    if "id" not in kwargs:
-        kwargs["id"] = args[0]  # use first argument  as test ID
-    return pytest.param(*args, **kwargs)
-
-
 def autosign_properties(alg, size):
     return [
         f"ksk {lifetime['P2Y']} {alg} {size} goal:omnipresent dnskey:omnipresent krrsig:omnipresent ds:omnipresent",