Exemplo n.º 1
0
def get_model():
    """
    return the model.
    :return:
    """
    return KMUser()
Exemplo n.º 2
0
 def get_user(cls, user_id):
     user = KMUser()
     user.password = bcrypt.hashpw(
         TEST_PASSWORD.encode(SETTINGS.CHARACTER_SET), bcrypt.gensalt())
     return user