MCPcopy
hub / github.com/awslabs/aws-shell / test_profile_command_changes_profile

Function test_profile_command_changes_profile

tests/unit/test_app.py:95–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93
94
95def test_profile_command_changes_profile():
96 shell = mock.Mock(spec=app.AWSShell)
97 shell.profile = 'myprofile'
98 stdout = compat.StringIO()
99 handler = app.ProfileHandler(stdout)
100
101 handler.run(['.profile', 'newprofile'], shell)
102
103 assert shell.profile == 'newprofile'
104
105
106def test_profile_prints_error_on_bad_syntax():

Callers

nothing calls this directly

Calls 1

runMethod · 0.95

Tested by

no test coverage detected