This is an automated email from the ASF dual-hosted git repository.

shahar 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 3a783ecf4c0 Enable PT006 rule to microsoft Provider 
test(azure,mssql,psrp) (#57936)
3a783ecf4c0 is described below

commit 3a783ecf4c017182d9c964bad7e8cdab1ddc4b15
Author: GUAN-HAO HUANG <[email protected]>
AuthorDate: Sat Nov 8 02:36:46 2025 +0800

    Enable PT006 rule to microsoft Provider test(azure,mssql,psrp) (#57936)
---
 providers/microsoft/azure/tests/unit/microsoft/azure/test_utils.py    | 4 ++--
 .../microsoft/mssql/tests/unit/microsoft/mssql/hooks/test_mssql.py    | 2 +-
 .../microsoft/psrp/tests/unit/microsoft/psrp/operators/test_psrp.py   | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/providers/microsoft/azure/tests/unit/microsoft/azure/test_utils.py 
b/providers/microsoft/azure/tests/unit/microsoft/azure/test_utils.py
index c56d53f7195..590aea1ac45 100644
--- a/providers/microsoft/azure/tests/unit/microsoft/azure/test_utils.py
+++ b/providers/microsoft/azure/tests/unit/microsoft/azure/test_utils.py
@@ -55,7 +55,7 @@ def test_get_field_warns_on_dupe():
 
 
 @pytest.mark.parametrize(
-    "input, expected",
+    ("input", "expected"),
     [
         (dict(this_param="non-prefixed"), "non-prefixed"),
         (dict(this_param=None), None),
@@ -147,7 +147,7 @@ class TestAzureIdentityCredentialAdapter:
 
 
 @pytest.mark.parametrize(
-    "host, login, expected_url",
+    ("host", "login", "expected_url"),
     [
         (None, None, "https://None.blob.core.windows.net/";),  # to maintain 
existing behaviour
         (None, "storage_account", 
"https://storage_account.blob.core.windows.net/";),
diff --git 
a/providers/microsoft/mssql/tests/unit/microsoft/mssql/hooks/test_mssql.py 
b/providers/microsoft/mssql/tests/unit/microsoft/mssql/hooks/test_mssql.py
index f54ec897aee..2af15716083 100644
--- a/providers/microsoft/mssql/tests/unit/microsoft/mssql/hooks/test_mssql.py
+++ b/providers/microsoft/mssql/tests/unit/microsoft/mssql/hooks/test_mssql.py
@@ -173,7 +173,7 @@ class TestMsSqlHook:
         mssql_get_conn.assert_called_once()
         assert hook.get_autocommit(conn) == "autocommit_state"
 
-    @pytest.mark.parametrize("conn_id,exp_uri", URI_TEST_CASES)
+    @pytest.mark.parametrize(("conn_id", "exp_uri"), URI_TEST_CASES)
     
@mock.patch("airflow.providers.microsoft.mssql.hooks.mssql.MsSqlHook.get_connection")
     def test_get_uri_driver_rewrite(self, get_connection, mssql_connections, 
conn_id, exp_uri):
         get_connection.return_value = mssql_connections[conn_id]
diff --git 
a/providers/microsoft/psrp/tests/unit/microsoft/psrp/operators/test_psrp.py 
b/providers/microsoft/psrp/tests/unit/microsoft/psrp/operators/test_psrp.py
index e3cb20116b0..cbae627ede1 100644
--- a/providers/microsoft/psrp/tests/unit/microsoft/psrp/operators/test_psrp.py
+++ b/providers/microsoft/psrp/tests/unit/microsoft/psrp/operators/test_psrp.py
@@ -51,7 +51,7 @@ class TestPsrpOperator:
 
     @pytest.mark.parametrize("do_xcom_push", [True, False])
     @pytest.mark.parametrize(
-        "had_errors, rc", [(False, 0), (False, None), (True, None), (False, 
1), (True, 1)]
+        ("had_errors", "rc"), [(False, 0), (False, None), (True, None), 
(False, 1), (True, 1)]
     )
     @pytest.mark.parametrize(
         "parameter",

Reply via email to