Why This Matters
CloudWatch helpers are reused by AWS tools, but the service functions themselves are untested directly.
Read First
app/services/cloudwatch_client.py
tests/tools/test_cloudwatch_logs_tool.py
Scope
- Add a direct test module for metric and log helper functions.
- Mock
make_boto3_client() and require_aws_credentials().
- Keep tool-registration assertions out of this test module.
Tests / Coverage
tests/services/test_cloudwatch_client.py
- cover
get_metric_statistics()
- cover
filter_log_events()
- cover
get_log_events()
- cover missing boto3 and missing credentials flows
Acceptance Criteria
- CloudWatch service functions have direct tests
- no tool tests are needed to prove service behavior
- the test names make each helper's contract obvious
Why This Matters
CloudWatch helpers are reused by AWS tools, but the service functions themselves are untested directly.
Read First
app/services/cloudwatch_client.pytests/tools/test_cloudwatch_logs_tool.pyScope
make_boto3_client()andrequire_aws_credentials().Tests / Coverage
tests/services/test_cloudwatch_client.pyget_metric_statistics()filter_log_events()get_log_events()Acceptance Criteria