(email_input: str, error_msg: str)
| 457 | ], |
| 458 | ) |
| 459 | def 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( |
nothing calls this directly
no test coverage detected