Skip to content

Commit

Permalink
Merge pull request #78 from strosek/fix/address_typos
Browse files Browse the repository at this point in the history
Fix email address typo
  • Loading branch information
strosek authored Feb 9, 2023
2 parents e611452 + 7d2a84a commit d712145
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 44 deletions.
77 changes: 43 additions & 34 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
4 changes: 2 additions & 2 deletions infobip_channels/email/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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,
)

Expand Down
2 changes: 1 addition & 1 deletion tests/email/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand Down
2 changes: 1 addition & 1 deletion tests/email/models/test_validate_email_adresses.py
Original file line number Diff line number Diff line change
@@ -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,
)

Expand Down
6 changes: 3 additions & 3 deletions tests/sms/models/test_send.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"}],
}
]
Expand Down
6 changes: 3 additions & 3 deletions tests/sms/models/test_send_binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
**{
Expand All @@ -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"}],
}
]
Expand Down

0 comments on commit d712145

Please sign in to comment.