Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/aws/aws-cli
/ get_context
Function
get_context
awscli/botocore/context.py:42–44 ·
view source on GitHub ↗
Get the current ``_context`` context variable if set, else None.
()
Source
from the content-addressed store, hash-verified
40
41
42
def
get_context():
43
""
"Get the current ``_context`` context variable if set, else None."
""
44
return
_context.get(None)
45
46
47
def
set_context(ctx):
Callers
15
_main
Method · 0.90
test_passing_context_to_task_call
Method · 0.90
test_register_feature_id
Function · 0.90
test_register_unknown_feature_id_skips
Function · 0.90
test_get_context_returns_none
Method · 0.90
test_get_context_returns_current
Method · 0.90
test_set_context
Method · 0.90
test_start_as_current_context
Method · 0.90
test_nested_start_as_current_context
Method · 0.90
test_start_as_current_context_with_param
Method · 0.90
do_something
Method · 0.90
register_fake
Method · 0.90
Calls
no outgoing calls
Tested by
12
_main
Method · 0.72
test_passing_context_to_task_call
Method · 0.72
test_register_feature_id
Function · 0.72
test_register_unknown_feature_id_skips
Function · 0.72
test_get_context_returns_none
Method · 0.72
test_get_context_returns_current
Method · 0.72
test_set_context
Method · 0.72
test_start_as_current_context
Method · 0.72
test_nested_start_as_current_context
Method · 0.72
test_start_as_current_context_with_param
Method · 0.72
do_something
Method · 0.72
register_fake
Method · 0.72