From 532e873bc8a7b24d903f03ac92992d9c3ec9da0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sviatoslav=20Sydorenko=20=28=D0=A1=D0=B2=D1=8F=D1=82=D0=BE?= =?UTF-8?q?=D1=81=D0=BB=D0=B0=D0=B2=20=D0=A1=D0=B8=D0=B4=D0=BE=D1=80=D0=B5?= =?UTF-8?q?=D0=BD=D0=BA=D0=BE=29?= Date: Wed, 9 Oct 2024 20:23:09 +0200 Subject: [PATCH] Drop static kwargs from params --- tests/credential_plugins_test.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/tests/credential_plugins_test.py b/tests/credential_plugins_test.py index eda3d71c35..141242c247 100644 --- a/tests/credential_plugins_test.py +++ b/tests/credential_plugins_test.py @@ -141,13 +141,8 @@ def test_hashivault_handle_auth_not_enough_args() -> None: { 'access_key': 'my_access_key', 'secret_key': 'my_secret_key', - 'role_arn': 'the_arn', - 'identifier': 'access_token', - }, - { - 'role_arn': 'the_arn', - 'identifier': 'access_token', }, + {}, ), ) @pytest.mark.parametrize( @@ -188,7 +183,10 @@ def mock_getcreds( ) token = aws_assumerole.aws_assumerole_backend( - **kwargs, identifier=identifier_key or kwargs['identifier']) + identifier=identifier_key or 'access_token', + role_arn='the_arn', + **kwargs, + ) assert token == expected