Skip to content

Commit 2a945e5

Browse files
committed
refreshed only initial snapshot
1 parent a28183f commit 2a945e5

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

tests/aws/services/ses/test_ses.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,9 @@ def test_sent_message_counter(
260260
self, create_template, aws_client, snapshot, setup_email_addresses
261261
):
262262
# Ensure all email send operations correctly update the `sent` email counter
263+
snapshot.add_transformer(
264+
snapshot.transform.key_value("SentLast24Hours", reference_replacement=False),
265+
)
263266

264267
def _assert_sent_quota(expected_counter: int) -> dict:
265268
_send_quota = aws_client.ses.get_send_quota()
@@ -270,7 +273,7 @@ def _assert_sent_quota(expected_counter: int) -> dict:
270273

271274
sender_email, recipient_email = setup_email_addresses()
272275
send_quota = aws_client.ses.get_send_quota()
273-
# snapshot.match("get-quota-0", send_quota)
276+
snapshot.match("get-quota-0", send_quota)
274277
counter = send_quota["SentLast24Hours"]
275278

276279
aws_client.ses.send_email(

tests/aws/services/ses/test_ses.snapshot.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -903,12 +903,12 @@
903903
}
904904
},
905905
"tests/aws/services/ses/test_ses.py::TestSES::test_sent_message_counter": {
906-
"recorded-date": "25-08-2023, 23:40:26",
906+
"recorded-date": "27-11-2024, 13:03:32",
907907
"recorded-content": {
908908
"get-quota-0": {
909909
"Max24HourSend": 200.0,
910910
"MaxSendRate": 1.0,
911-
"SentLast24Hours": 0.0,
911+
"SentLast24Hours": "sent-last24-hours",
912912
"ResponseMetadata": {
913913
"HTTPHeaders": {},
914914
"HTTPStatusCode": 200

tests/aws/services/ses/test_ses.validation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"last_validated_date": "2023-08-25T22:02:43+00:00"
5252
},
5353
"tests/aws/services/ses/test_ses.py::TestSES::test_sent_message_counter": {
54-
"last_validated_date": "2023-08-25T21:40:26+00:00"
54+
"last_validated_date": "2024-11-27T13:03:32+00:00"
5555
},
5656
"tests/aws/services/ses/test_ses.py::TestSES::test_ses_sns_topic_integration_send_email": {
5757
"last_validated_date": "2023-08-25T21:53:37+00:00"

0 commit comments

Comments
 (0)