lazy init aws_cloudwatch_client

This commit is contained in:
Kenneth Kehl
2025-10-02 09:38:02 -07:00
parent b9ad225848
commit 96b8424a40
2 changed files with 5 additions and 4 deletions

View File

@@ -7,9 +7,10 @@ from unittest.mock import MagicMock, patch
import pytest
from flask import current_app
from app import aws_cloudwatch_client
from app.clients.cloudwatch.aws_cloudwatch import AwsCloudwatchClient
aws_cloudwatch_client = MagicMock()
def test_check_sms_no_event_error_condition(notify_api, mocker):
boto_mock = mocker.patch.object(aws_cloudwatch_client, "_client", create=True)