This is an automated email from the ASF dual-hosted git repository.
eladkal pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 011bbfaa342 Enable PT006 rule to hashicorp Provider test (#57916)
011bbfaa342 is described below
commit 011bbfaa342e08fd5f2a0544e30232b34719cc0c
Author: GUAN-HAO HUANG <[email protected]>
AuthorDate: Thu Nov 6 23:51:08 2025 +0800
Enable PT006 rule to hashicorp Provider test (#57916)
---
providers/hashicorp/tests/unit/hashicorp/hooks/test_vault.py | 8 ++++----
providers/hashicorp/tests/unit/hashicorp/secrets/test_vault.py | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/providers/hashicorp/tests/unit/hashicorp/hooks/test_vault.py
b/providers/hashicorp/tests/unit/hashicorp/hooks/test_vault.py
index fa573eb6624..a072f373703 100644
--- a/providers/hashicorp/tests/unit/hashicorp/hooks/test_vault.py
+++ b/providers/hashicorp/tests/unit/hashicorp/hooks/test_vault.py
@@ -62,7 +62,7 @@ class TestVaultHook:
VaultHook(**kwargs)
@pytest.mark.parametrize(
- "version, expected_version",
+ ("version", "expected_version"),
[
("2", 2),
(1, 1),
@@ -161,7 +161,7 @@ class TestVaultHook:
assert test_hook.vault_client.kv_engine_version == 1
@pytest.mark.parametrize(
- "protocol, expected_url",
+ ("protocol", "expected_url"),
[
("vaults", "https://localhost:8180"),
("http", "http://localhost:8180"),
@@ -195,7 +195,7 @@ class TestVaultHook:
assert test_hook.vault_client.kv_engine_version == 2
@pytest.mark.parametrize(
- "use_tls, expected_url",
+ ("use_tls", "expected_url"),
[
(True, "https://localhost:8180"),
(False, "http://localhost:8180"),
@@ -1282,7 +1282,7 @@ class TestVaultHook:
)
@pytest.mark.parametrize(
- "method, expected_method",
+ ("method", "expected_method"),
[
(None, None),
("post", "post"),
diff --git a/providers/hashicorp/tests/unit/hashicorp/secrets/test_vault.py
b/providers/hashicorp/tests/unit/hashicorp/secrets/test_vault.py
index 8b5e1b3cfc4..6cc248304d6 100644
--- a/providers/hashicorp/tests/unit/hashicorp/secrets/test_vault.py
+++ b/providers/hashicorp/tests/unit/hashicorp/secrets/test_vault.py
@@ -182,7 +182,7 @@ class TestVaultSecrets:
assert returned_uri == "world"
@pytest.mark.parametrize(
- "mount_point, variables_path, variable_key, expected_args",
+ ("mount_point", "variables_path", "variable_key", "expected_args"),
[
("airflow", "variables", "hello", {"mount_point": "airflow",
"path": "variables/hello"}),
(