Skip to content

Commit 011bbfa

Browse files
authored
Enable PT006 rule to hashicorp Provider test (#57916)
1 parent 80e409a commit 011bbfa

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

providers/hashicorp/tests/unit/hashicorp/hooks/test_vault.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def test_version_not_int(self, mock_hvac, mock_get_connection):
6262
VaultHook(**kwargs)
6363

6464
@pytest.mark.parametrize(
65-
"version, expected_version",
65+
("version", "expected_version"),
6666
[
6767
("2", 2),
6868
(1, 1),
@@ -161,7 +161,7 @@ def test_version_one_dejson(self, mock_hvac, mock_get_connection):
161161
assert test_hook.vault_client.kv_engine_version == 1
162162

163163
@pytest.mark.parametrize(
164-
"protocol, expected_url",
164+
("protocol", "expected_url"),
165165
[
166166
("vaults", "https://localhost:8180"),
167167
("http", "http://localhost:8180"),
@@ -195,7 +195,7 @@ def test_protocol(self, mock_hvac, mock_get_connection, protocol, expected_url):
195195
assert test_hook.vault_client.kv_engine_version == 2
196196

197197
@pytest.mark.parametrize(
198-
"use_tls, expected_url",
198+
("use_tls", "expected_url"),
199199
[
200200
(True, "https://localhost:8180"),
201201
(False, "http://localhost:8180"),
@@ -1282,7 +1282,7 @@ def test_create_or_update_secret_v2_cas(self, mock_hvac, mock_get_connection):
12821282
)
12831283

12841284
@pytest.mark.parametrize(
1285-
"method, expected_method",
1285+
("method", "expected_method"),
12861286
[
12871287
(None, None),
12881288
("post", "post"),

providers/hashicorp/tests/unit/hashicorp/secrets/test_vault.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def test_get_variable_value_without_predefined_mount_point(self, mock_hvac):
182182
assert returned_uri == "world"
183183

184184
@pytest.mark.parametrize(
185-
"mount_point, variables_path, variable_key, expected_args",
185+
("mount_point", "variables_path", "variable_key", "expected_args"),
186186
[
187187
("airflow", "variables", "hello", {"mount_point": "airflow", "path": "variables/hello"}),
188188
(

0 commit comments

Comments
 (0)