Skip to content

Commit

Permalink
Skip AWS auth test when python3-saml not installed (apache#41582)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
potiuk authored Aug 19, 2024
1 parent 317a28e commit 9a84907
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,7 @@ def test_security_manager_return_default_security_manager(self, auth_manager_wit
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")
Expand Down

0 comments on commit 9a84907

Please sign in to comment.