Exemple #1
0
 def given_an_auth_token_repo_that_returns_a_token(self):
     self.auth_token = AuthToken(person_id='3',
                                 access_token='A',
                                 refresh_token='R')
     self.auth_token_repo = Mock()
     self.auth_token_repo.create_auth_token.return_value = self.auth_token
     return self
Exemple #2
0
 def given_an_auth_token(self):
     self.auth_token = AuthToken('9', 'a', 'r')
     return self
Exemple #3
0
 def given_an_auth_token(self):
     self.auth_token = AuthToken(person_id='1',
                                 access_token='A',
                                 refresh_token='R')
     return self