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

Method setUp

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

Source from the content-addressed store, hash-verified

1605
1606class TestConfigFileProvider(BaseEnvVar):
1607 def setUp(self):
1608 super().setUp()
1609 profile_config = {
1610 'aws_access_key_id': 'a',
1611 'aws_secret_access_key': 'b',
1612 'aws_session_token': 'c',
1613 # Non creds related configs can be in a session's # config.
1614 'region': 'us-west-2',
1615 'output': 'json',
1616 }
1617 parsed = {'profiles': {'default': profile_config}}
1618 parser = mock.Mock()
1619 parser.return_value = parsed
1620 self.parser = parser
1621
1622 def test_config_file_exists(self):
1623 provider = credentials.ConfigProvider(

Callers

nothing calls this directly

Calls 1

setUpMethod · 0.45

Tested by

no test coverage detected