

@pytest.mark.settings(send_register_email=False)
def test_disable_register_emails(client, app):
    data = dict(email='dude@lp.com', password='password', password_confirm='password', next='')
    with app.mail.record_messages() as outbox:
        client.post('/register', data=data, follow_redirects=True)
    assert (len(outbox) == 0)

dataset/ETHPy150Open mattupstate/flask-security/tests/test_registerable.py test_disable_register_emails/original