def test_cleanup(db):
    global user1, user2, user3, user4
    db.session.delete(user1)
    db.session.delete(user2)
    db.session.delete(user3)
    db.session.delete(user4)
    db.session.commit()
    user1 = None
    user2 = None
    user3 = None
    user4 = None


# TODO:
# Register without confirming email and try to log in
# 'Your email address has not yet been confirmed. Check your email Inbox and Spam folders for the confirmation email and follow the instructions to activate your account.'
#
# Disable account and try to login
# 'Your account has been disabled.'
#
# Logout with user_manager.logout_next set
#
# Reset password with custom user_manager.password_validator
#
# Change password with custom user_manager.password_validator:
#
# Custom db_adapter.EmailClass
Returns the threshold that maximizes the expected F score,
dataset/ETHPy150Open lingthio/Flask-User/flask_user/tests/test_invalid_forms.py/test_cleanup--crossover with--dataset/ETHPy150Open datamade/dedupe/dedupe/api.py/RecordLinkMatching.threshold