def user(database): user = UserFactory.create() database.session.commit() return user
def admin(database): user = UserFactory.create(username="******") user.is_admin = True database.session.commit() return user