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

Function create_session

tests/functional/botocore/__init__.py:40–46  ·  view source on GitHub ↗
(**kwargs)

Source from the content-addressed store, hash-verified

38
39
40def create_session(**kwargs):
41 # Create session and inject functional test models into loader
42 loader = _create_functional_test_loader()
43 session = botocore.session.Session(**kwargs)
44 session.register_component('data_loader', loader)
45 session.set_config_variable('credentials_file', 'noexist/foo/botocore')
46 return session
47
48
49def _create_functional_test_loader():

Callers 6

_all_test_casesFunction · 0.90
_create_s3_clientFunction · 0.90
test_unsigned_operationsFunction · 0.90
patched_sessionFunction · 0.90
setUpMethod · 0.70

Calls 3

register_componentMethod · 0.95
set_config_variableMethod · 0.95

Tested by 5

_all_test_casesFunction · 0.72
_create_s3_clientFunction · 0.72
test_unsigned_operationsFunction · 0.72
patched_sessionFunction · 0.72