Skip to content

Commit

Permalink
Drop static kwargs from params
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz authored Oct 9, 2024
1 parent 637e144 commit 532e873
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/credential_plugins_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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


Expand Down

0 comments on commit 532e873

Please sign in to comment.