def default_user(self): user = User( email='*****@*****.**', ) db.session.add(user) db.session.commit() return user
def default_admin(self): user = User( email='*****@*****.**', is_admin=True, ) db.session.add(user) db.session.commit() return user
def create_user(self, email, **kwargs): user = User(email=email, **kwargs) db.session.add(user) db.session.commit() return user