MCPcopy Index your code
hub / github.com/aws/aws-cli / test_display_error_message

Function test_display_error_message

tests/integration/test_smoke.py:56–65  ·  view source on GitHub ↗
(cmd)

Source from the content-addressed store, hash-verified

54
55@pytest.mark.parametrize('cmd', ERROR_COMMANDS)
56def test_display_error_message(cmd):
57 result = _aws(cmd, target_rc=254)
58 assert result.rc == 254
59 error_message = re.compile(
60 r'An error occurred \(.+\) when calling the \w+ operation: \w+'
61 )
62 match = error_message.search(result.stderr)
63 assert (
64 match
65 ), f'Error message was not displayed for command "{cmd}": {result.stderr}'

Callers

nothing calls this directly

Calls 2

_awsFunction · 0.85
searchMethod · 0.80

Tested by

no test coverage detected