MCPcopy Index your code
hub / github.com/JoshData/python-email-validator / test_email_invalid_syntax

Function test_email_invalid_syntax

tests/test_syntax.py:459–464  ·  view source on GitHub ↗
(email_input: str, error_msg: str)

Source from the content-addressed store, hash-verified

457 ],
458)
459def test_email_invalid_syntax(email_input: str, error_msg: str) -> None:
460 # Since these all have syntax errors, deliverability
461 # checks do not arise.
462 with pytest.raises(EmailSyntaxError) as exc_info:
463 validate_email(email_input, check_deliverability=False)
464 assert str(exc_info.value) == error_msg
465
466
467@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

validate_emailFunction · 0.90

Tested by

no test coverage detected