def test_provider_tokenize_refresh(self): MockResponses.provider_tokenize_refresh() result = self.provider.tokenize('qwerty', refresh=True) self.assertIn('access_token', result) self.assertIn('refresh_token', result)
def test_task_refresh_tokens(self): for provider in providers.values(): MockResponses.provider_tokenize_refresh() FakeModels.account(provider=provider) result = tasks.refresh_tokens() total = len(providers) self.assertTaskResult(result, total=total, success=total)