-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
627c1ac
commit cae6921
Showing
10 changed files
with
31 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
find_packages | ||
) | ||
|
||
VERSION = (0, 2, 2) | ||
VERSION = (0, 2, 3) | ||
AUTHOR = "Aniket Sarkar" | ||
AUTHOR_EMAIL = "[email protected]" | ||
|
||
|
@@ -43,6 +43,7 @@ | |
"asgiref>=3.4.1", | ||
"blinker>=1.4", | ||
"pydantic>=1.8.2", | ||
"pydantic-settings>=2.0.3", | ||
"email-validator>=1.1.3", | ||
"typing-extensions>=3.10.0.0", | ||
"httpx>=0.21.3", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
|
||
|
||
def test_configuration(mail_config): | ||
conf = ConnectionConfig.parse_obj(mail_config) | ||
conf = ConnectionConfig.model_validate(mail_config) | ||
assert conf.MAIL_USERNAME == "[email protected]" | ||
assert conf.MAIL_PORT == 25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -166,7 +166,7 @@ async def test_msgid_header(): | |
subtype="plain", | ||
) | ||
|
||
msg = MailMsg(**message.dict()) | ||
msg = MailMsg(**message.model_dump()) | ||
msg_object = await msg._message("[email protected]") | ||
assert msg_object["Message-ID"] is not None | ||
|
||
|
@@ -180,7 +180,7 @@ async def test_message_charset(): | |
subtype="plain", | ||
) | ||
|
||
msg = MailMsg(**message.dict()) | ||
msg = MailMsg(**message.model_dump()) | ||
msg_object = await msg._message("[email protected]") | ||
assert msg_object._charset is not None | ||
assert msg_object._charset == "utf-8" |