def test_validate_email(): validate_email("google:[email protected]") with pytest.raises(SwaggerValidationError): validate_email("not-an-email!") validate_email("fake:[email protected]")
def test_validate_email(): validate_email("*****@*****.**") with pytest.raises(SwaggerValidationError): validate_email("not-an-email!")