diff --git a/.codegen.json b/.codegen.json index a429885..7b6884e 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "267eec8", "specHash": "1698c95", "version": "0.6.4" } +{ "engineHash": "c437976", "specHash": "1698c95", "version": "0.6.4" } diff --git a/.pylintrc b/.pylintrc index 20209a1..e4301cd 100644 --- a/.pylintrc +++ b/.pylintrc @@ -7,7 +7,7 @@ # pygtk.require(). #init-hook= -# Add files or directories to the blacklist. They should be base names, not +# Add files or directories to the denylist. They should be base names, not # paths. #ignore=CVS diff --git a/box_sdk_gen/box/ccg_auth.py b/box_sdk_gen/box/ccg_auth.py index fae1065..65346a7 100644 --- a/box_sdk_gen/box/ccg_auth.py +++ b/box_sdk_gen/box/ccg_auth.py @@ -230,4 +230,5 @@ def revoke_token(self, *, network_session: Optional[NetworkSession] = None) -> N client_secret=self.config.client_secret, token=old_token.access_token, ) - return self.token_storage.clear() + self.token_storage.clear() + return None diff --git a/box_sdk_gen/box/jwt_auth.py b/box_sdk_gen/box/jwt_auth.py index 559ed1b..33734a8 100644 --- a/box_sdk_gen/box/jwt_auth.py +++ b/box_sdk_gen/box/jwt_auth.py @@ -454,4 +454,5 @@ def revoke_token(self, *, network_session: Optional[NetworkSession] = None) -> N client_secret=self.config.client_secret, token=old_token.access_token, ) - return self.token_storage.clear() + self.token_storage.clear() + return None diff --git a/test/fetch.py b/test/fetch.py index cb6ae05..f30c635 100644 --- a/test/fetch.py +++ b/test/fetch.py @@ -303,7 +303,7 @@ def test_make_request_unauthorised(mock_requests_session, response_401): @pytest.mark.parametrize( 'exc_message, expected_reauthentication_needed', [ - ('Connection aborted', False), + ('Connection cancelled', False), ( "Connection broken: ConnectionResetError(54, 'Connection reset by peer')", False, @@ -334,7 +334,7 @@ def test_make_request_network_exception( def test_fetch_successfully_retry_network_exception( mock_requests_session, network_session_mock, response_200 ): - requests_exception = RequestException('Connection aborted') + requests_exception = RequestException('Connection cancelled') mock_requests_session.request.side_effect = [requests_exception, response_200] with patch('time.sleep'): @@ -347,11 +347,11 @@ def test_fetch_successfully_retry_network_exception( def test_fetch_make_only_one_retry_for_network_exception( mock_requests_session, network_session_mock ): - requests_exception = RequestException('Connection aborted') + requests_exception = RequestException('Connection cancelled') mock_requests_session.request.side_effect = [requests_exception, requests_exception] with patch('time.sleep'): - with pytest.raises(BoxSDKError, match='Connection aborted'): + with pytest.raises(BoxSDKError, match='Connection cancelled'): fetch( "https://example.com", FetchOptions(network_session=network_session_mock),