def setup_verified_user(self): user = AppUser('*****@*****.**', 'Some', 'Thing', 'Mr', 1, 1, 'Male', 'University', 'Computer Science', 'None', 1, datetime(1984, 12, 12), 'English', '123456') user.verify_token = 'existing token' user.verify() db.session.add(user) db.session.commit()
def setup_verified_user(self): user = AppUser(email='*****@*****.**', firstname='Some', lastname='Thing', user_title='Mr', password='******', organisation_id=1) user.verify_token = 'existing token' user.verify() db.session.add(user) db.session.commit()