Exemplo n.º 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)
Exemplo n.º 2
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)
Exemplo n.º 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))
Exemplo n.º 4
0
 def test_delete_token(self):
     with app.app_context():
         oauth.delete_credentials(self._email, revoke=False)
         self.assertIsNone(oauth.get_token(self._email))