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

potiuk 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 9a84907462 Skip AWS auth test when python3-saml not installed (#41582)
9a84907462 is described below

commit 9a8490746238189ad19b4f8524d4501d06aacd6e
Author: Jarek Potiuk <[email protected]>
AuthorDate: Mon Aug 19 14:04:58 2024 +0200

    Skip AWS auth test when python3-saml not installed (#41582)
    
    Python3-saml is an optional dependency of Amazon provider and in
    case of Airflow 2.9 tests python3-saml is not installed yet, so we
    should skip the tests in case it is not.
---
 tests/providers/amazon/aws/auth_manager/test_aws_auth_manager.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/providers/amazon/aws/auth_manager/test_aws_auth_manager.py 
b/tests/providers/amazon/aws/auth_manager/test_aws_auth_manager.py
index c26c07cd8b..12bd0c1397 100644
--- a/tests/providers/amazon/aws/auth_manager/test_aws_auth_manager.py
+++ b/tests/providers/amazon/aws/auth_manager/test_aws_auth_manager.py
@@ -785,6 +785,7 @@ class TestAwsAuthManager:
     def test_get_cli_commands_return_cli_commands(self, auth_manager):
         assert len(auth_manager.get_cli_commands()) > 0
 
+    @pytest.importorskip("python3-saml")
     @pytest.mark.db_test
     @patch.object(AwsAuthManagerAmazonVerifiedPermissionsFacade, 
"get_batch_is_authorized_single_result")
     @patch.object(AwsAuthManagerAmazonVerifiedPermissionsFacade, 
"get_batch_is_authorized_results")

Reply via email to