chore(lint): fix C0116

This commit is contained in:
Luke Tainton 2024-08-30 19:31:13 +01:00
parent 7aabe37c72
commit 70ac601064
No known key found for this signature in database

View File

@ -6,15 +6,18 @@ from app.utils.helpers import validate_email_syntax # pragma: no cover
def test_validate_email_syntax_true() -> None:
"""Test validate_email_syntax() with a real email address."""
email: str = "test@test.com"
assert validate_email_syntax(email)
def test_validate_email_syntax_false1() -> None:
"""Test validate_email_syntax() with an invalid email address."""
email: str = "test@test"
assert not validate_email_syntax(email)
def test_validate_email_syntax_false2() -> None:
"""Test validate_email_syntax() with an invalid email address."""
email: str = "test"
assert not validate_email_syntax(email)