def test_timeout(): publicAPI = PublicAPI(sandbox=True, institution_key=CLIENT_KEY, institution_secret=CLIENT_SECRET, timeout=0.000001) with pytest.raises(Timeout): publicAPI.get_token(USER_EMAIL, USER_PASSWORD, REDIRECT_URL, '/read-limited')
def publicAPI(): """Get PublicAPI handler.""" return PublicAPI(sandbox=True, institution_key=CLIENT_KEY, institution_secret=CLIENT_SECRET)
def publicAPIStoreResponse(): """Get PublicAPI handler that stores request.""" return PublicAPI(sandbox=True, institution_key=CLIENT_KEY, institution_secret=CLIENT_SECRET, do_store_raw_response=True)