From c8db6aafb5fb95fdfb4995c94aebac71f43ec7b4 Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 18 Sep 2023 13:21:57 -0400 Subject: [PATCH] EmailError Removed in Pydantic2 --- tests/test_checker.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/test_checker.py b/tests/test_checker.py index f83d217..cbb4749 100644 --- a/tests/test_checker.py +++ b/tests/test_checker.py @@ -1,5 +1,4 @@ import pytest -from pydantic import EmailError from flask_mailing.utils.errors import DBProvaiderError @@ -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()