Esempio n. 1
0
def user(database):
    user = UserFactory.create()
    database.session.commit()
    return user
Esempio n. 2
0
def admin(database):
    user = UserFactory.create(username="******")
    user.is_admin = True
    database.session.commit()
    return user