Esempio n. 1
0
 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()
Esempio n. 2
0
 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()