Skip to content

Commit

Permalink
Fix test_load_sso_credentials_without_cache, which has been incorrect…
Browse files Browse the repository at this point in the history
… since creation and never actually run. (#1041)
  • Loading branch information
jakkdl authored Sep 25, 2023
1 parent 1d341d7 commit 5334722
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/boto_tests/test_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -1253,10 +1253,14 @@ def _add_get_role_credentials_response(self):
)


def test_load_sso_credentials_without_cache(self):
self._add_get_role_credentials_response()
@pytest.mark.moto
@pytest.mark.asyncio
async def test_load_sso_credentials_without_cache(sso_provider_setup):
self = sso_provider_setup
_add_get_role_credentials_response(self)
with self.stubber:
credentials = self.provider.load()
credentials = await self.provider.load()
credentials = await credentials.get_frozen_credentials()
self.assertEqual(credentials.access_key, 'foo')
self.assertEqual(credentials.secret_key, 'bar')
self.assertEqual(credentials.token, 'baz')
Expand Down

0 comments on commit 5334722

Please sign in to comment.