MCPcopy Create free account
hub / github.com/aws/aws-cli / setUp

Method setUp

tests/unit/botocore/test_credentials.py:2016–2024  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2014
2015class TestCanonicalNameSourceProvider(BaseEnvVar):
2016 def setUp(self):
2017 super().setUp()
2018 self.custom_provider1 = mock.Mock(spec=CredentialProvider)
2019 self.custom_provider1.METHOD = 'provider1'
2020 self.custom_provider1.CANONICAL_NAME = 'CustomProvider1'
2021 self.custom_provider2 = mock.Mock(spec=CredentialProvider)
2022 self.custom_provider2.METHOD = 'provider2'
2023 self.custom_provider2.CANONICAL_NAME = 'CustomProvider2'
2024 self.fake_creds = credentials.Credentials('a', 'b', 'c')
2025
2026 def test_load_source_credentials(self):
2027 provider = credentials.CanonicalNameCredentialSourcer(

Callers

nothing calls this directly

Calls 1

setUpMethod · 0.45

Tested by

no test coverage detected