Skip to content

Commit

Permalink
EmailError Removed in Pydantic2
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesTWood committed Sep 18, 2023
1 parent 86f77e7 commit c8db6aa
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/test_checker.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pytest
from pydantic import EmailError

from flask_mailing.utils.errors import DBProvaiderError

Expand Down Expand Up @@ -40,8 +39,5 @@ async def test_default_checker(default_checker):

assert default_checker.validate_email(email) is True

with pytest.raises(EmailError):
default_checker.validate_email("test#mail.com")

with pytest.raises(DBProvaiderError):
await default_checker.close_connections()

0 comments on commit c8db6aa

Please sign in to comment.