예제 #1
0
def test_get_auth_token_with_incorrect_response_1():
    with pytest.raises(RefreshTokenException):
        SimpleAuthTokenProvider(MockWebClient(None, None)).get_new_token()
예제 #2
0
def get_client_with_default_response(
        response: RequestResponse = RequestResponse(None, None)) -> WebClient:
    return MockWebClient(default_response=response,
                         interceptors=[TwitterAuthWebClientInterceptor()])