From b7f60bb29b6fb2dac55c7a628b02cb306ee3c0f5 Mon Sep 17 00:00:00 2001 From: Erick Daniel Corona Date: Thu, 9 Feb 2023 12:38:50 -0600 Subject: [PATCH 1/3] Fix adress and calback typos --- infobip_channels/email/channel.py | 2 +- ...lidate_email_adresses.py => validate_email_addresses.py} | 0 tests/sms/models/test_send.py | 6 +++--- tests/sms/models/test_send_binary.py | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) rename infobip_channels/email/models/response/{validate_email_adresses.py => validate_email_addresses.py} (100%) diff --git a/infobip_channels/email/channel.py b/infobip_channels/email/channel.py index c424805..57d1fd6 100644 --- a/infobip_channels/email/channel.py +++ b/infobip_channels/email/channel.py @@ -80,7 +80,7 @@ from infobip_channels.email.models.response.update_tracking_events import ( UpdateTrackingEventsResponse, ) -from infobip_channels.email.models.response.validate_email_adresses import ( +from infobip_channels.email.models.response.validate_email_addresses import ( ValidateEmailAddressesResponse, ) diff --git a/infobip_channels/email/models/response/validate_email_adresses.py b/infobip_channels/email/models/response/validate_email_addresses.py similarity index 100% rename from infobip_channels/email/models/response/validate_email_adresses.py rename to infobip_channels/email/models/response/validate_email_addresses.py diff --git a/tests/sms/models/test_send.py b/tests/sms/models/test_send.py index 957fdda..b7cd58d 100644 --- a/tests/sms/models/test_send.py +++ b/tests/sms/models/test_send.py @@ -42,14 +42,14 @@ def test_when_destinations_to_is_invalid__validation_error_is_raised(destination ) -@pytest.mark.parametrize("calback_data", [{}, get_random_string(4001)]) -def test_when_calback_data_to_is_invalid__validation_error_is_raised(calback_data): +@pytest.mark.parametrize("callback_data", [{}, get_random_string(4001)]) +def test_when_callback_data_to_is_invalid__validation_error_is_raised(callback_data): with pytest.raises(ValidationError): GenerateSMSMessageBodyFactory.build( **{ "messages": [ { - "callbackData": calback_data, + "callbackData": callback_data, "destinations": [{"to": "41793026727"}], } ] diff --git a/tests/sms/models/test_send_binary.py b/tests/sms/models/test_send_binary.py index ca9a671..c9f2332 100644 --- a/tests/sms/models/test_send_binary.py +++ b/tests/sms/models/test_send_binary.py @@ -54,8 +54,8 @@ def test_when_destinations_to_is_invalid__validation_error_is_raised(destination ) -@pytest.mark.parametrize("calback_data", [{}, get_random_string(4001)]) -def test_when_calback_data_is_invalid__validation_error_is_raised(calback_data): +@pytest.mark.parametrize("callback_data", [{}, get_random_string(4001)]) +def test_when_callback_data_is_invalid__validation_error_is_raised(callback_data): with pytest.raises(ValidationError): GenerateBinarySMSMessageBodyFactory.build( **{ @@ -66,7 +66,7 @@ def test_when_calback_data_is_invalid__validation_error_is_raised(calback_data): "esmClass": 0, "hex": "54 65 73 74 20 6d 65 73 73 61 67 65 2e", }, - "callbackData": calback_data, + "callbackData": callback_data, "destinations": [{"to": "41793026727"}], } ] From 8673d80c97b729128f1c9c2030390196465de0f9 Mon Sep 17 00:00:00 2001 From: Erick Daniel Corona Date: Thu, 9 Feb 2023 12:44:20 -0600 Subject: [PATCH 2/3] Fix email addresses typo --- infobip_channels/email/channel.py | 2 +- .../{validate_email_adresses.py => validate_email_addresses.py} | 0 tests/email/conftest.py | 2 +- tests/email/models/test_validate_email_adresses.py | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename infobip_channels/email/models/body/{validate_email_adresses.py => validate_email_addresses.py} (100%) diff --git a/infobip_channels/email/channel.py b/infobip_channels/email/channel.py index 57d1fd6..7f7e036 100644 --- a/infobip_channels/email/channel.py +++ b/infobip_channels/email/channel.py @@ -16,7 +16,7 @@ from infobip_channels.email.models.body.update_tracking_events import ( UpdateTrackingEventsMessageBody, ) -from infobip_channels.email.models.body.validate_email_adresses import ( +from infobip_channels.email.models.body.validate_email_addresses import ( ValidateEmailAddressesMessageBody, ) from infobip_channels.email.models.path_parameters.delete_existing_domain import ( diff --git a/infobip_channels/email/models/body/validate_email_adresses.py b/infobip_channels/email/models/body/validate_email_addresses.py similarity index 100% rename from infobip_channels/email/models/body/validate_email_adresses.py rename to infobip_channels/email/models/body/validate_email_addresses.py diff --git a/tests/email/conftest.py b/tests/email/conftest.py index e3aa613..56cbde6 100644 --- a/tests/email/conftest.py +++ b/tests/email/conftest.py @@ -12,7 +12,7 @@ from infobip_channels.email.models.body.update_tracking_events import ( UpdateTrackingEventsMessageBody, ) -from infobip_channels.email.models.body.validate_email_adresses import ( +from infobip_channels.email.models.body.validate_email_addresses import ( ValidateEmailAddressesMessageBody, ) diff --git a/tests/email/models/test_validate_email_adresses.py b/tests/email/models/test_validate_email_adresses.py index cc6e4e6..0ee1c9d 100644 --- a/tests/email/models/test_validate_email_adresses.py +++ b/tests/email/models/test_validate_email_adresses.py @@ -1,7 +1,7 @@ import pytest from pydantic.error_wrappers import ValidationError -from infobip_channels.email.models.body.validate_email_adresses import ( +from infobip_channels.email.models.body.validate_email_addresses import ( ValidateEmailAddressesMessageBody, ) From 7d2a84a190c46cb8bfdda7747600f08beddbe2a0 Mon Sep 17 00:00:00 2001 From: Erick Daniel Corona Date: Thu, 9 Feb 2023 12:51:48 -0600 Subject: [PATCH 3/3] Add spelling exceptions --- .cspell.json | 77 +++++++++++++++++++++++++++++----------------------- 1 file changed, 43 insertions(+), 34 deletions(-) diff --git a/.cspell.json b/.cspell.json index 412aebc..ee70a64 100644 --- a/.cspell.json +++ b/.cspell.json @@ -11,50 +11,59 @@ "misc" ], "words": [ - "infobip", - "ibsso", - "pydantic", - "formdata", + "AYΣTHPO", + "AΘHNAIΩN", + "AΠOΦAΣH", + "EINAI", + "EKKΛHΣIAΣ", + "EMΠAPΓKO", + "ENROUTE", + "EΠIBAΛEI", + "KAΘOΛIKO", + "Kilic", + "Lozina", + "Luka", + "MEΓAPIKO", + "Snyk", + "WABA", + "aabe", "conint", "conlist", + "defaultplaceholders", "dtmf", + "formdata", + "ibsso", + "ijkl", + "infobip", + "intermediatereport", "msisdn", - "webrtc", - "testenv", - "WABA", + "preserverecipients", + "pydantic", + "replyto", "setuptools", - "Snyk", - "Luka", - "Kilic", - "Lozina", + "somexternal", + "templateid", + "testenv", + "trackclicks", + "trackopens", + "webrtc", + "Αθηναίων", + "ΓNΩΣTH", + "ΓYPΩ", + "ΔHMOY", + "Εκκλησίας", "Μεγαρικό", - "ψήφισμα", - "είναι", - "γνωστή", + "ΠIΘANON", + "ΨHΦIΣMA", "απόφαση", - "Εκκλησίας", + "αυστηρό", + "γνωστή", "δήμου", - "Αθηναίων", + "είναι", + "εμπάργκο", "επιβάλει", - "αυστηρό", "καθολικό", - "εμπάργκο", - "aabe", - "MEΓAPIKO", - "ΨHΦIΣMA", - "EINAI", - "ΓNΩΣTH", - "AΠOΦAΣH", - "EKKΛHΣIAΣ", - "ΔHMOY", - "AΘHNAIΩN", - "ΠIΘANON", - "ΓYPΩ", - "EΠIBAΛEI", - "AYΣTHPO", - "KAΘOΛIKO", - "EMΠAPΓKO", - "ijkl" + "ψήφισμα" ], "flagWords": [], "patterns": [