示例#1
0
    def setUp(self):
        self._email = None
        user = os.getenv('UNIFLOW_USER')
        self.assertNotEqual(None, user)
        self._email = '{}@students.calvin.edu'.format(user)

        with app.app_context():
            self._saved_credentials = oauth._get_credentials(self._email)
            oauth.delete_credentials(self._email, revoke=False)
    def setUp(self):
        self._email = None
        user = os.getenv('UNIFLOW_USER')
        self.assertNotEqual(None, user)
        self._email = '{}@students.calvin.edu'.format(user)

        with app.app_context():
            self._saved_credentials = oauth._get_credentials(self._email)
            oauth.delete_credentials(self._email, revoke=False)
示例#3
0
 def test_delete_token(self):
     with app.app_context():
         oauth.delete_credentials(self._email, revoke=False)
         self.assertIsNone(oauth.get_token(self._email))
 def test_delete_token(self):
     with app.app_context():
         oauth.delete_credentials(self._email, revoke=False)
         self.assertIsNone(oauth.get_token(self._email))