@@ -156,7 +156,7 @@ def test_hf_hub_http_error_init_with_request_id_and_multiline_message(self) -> N
156156 assert str (error ) == "this is a message (Request ID: test-id)\n \n this is more details"
157157
158158 def test_hf_hub_http_error_init_with_request_id_already_in_message (self ) -> None :
159- """Test request id is not duplicated in error message (case insensitive)"""
159+ """Test request id is not duplicated in error message (case- insensitive)"""
160160 self .response .headers = {X_REQUEST_ID : "test-id" }
161161 error = _format (HfHubHTTPError , "this is a message on request TEST-ID" , response = self .response )
162162 assert str (error ) == "this is a message on request TEST-ID"
@@ -196,7 +196,7 @@ def test_hf_hub_http_error_init_with_server_error_already_in_message(
196196 ) -> None :
197197 """Test server error is not duplicated if already in details.
198198
199- Case insensitive.
199+ Case- insensitive.
200200 """
201201 self .response ._content = b'{"error": "repo NOT found"}'
202202 error = _format (
@@ -256,14 +256,14 @@ def test_hf_hub_http_error_init_with_error_message_duplicated_in_header_and_body
256256 assert error .server_message == "Error message duplicated in headers and body."
257257
258258 def test_hf_hub_http_error_without_request_id_with_amzn_trace_id (self ) -> None :
259- """Test request id is not duplicated in error message (case insensitive)"""
259+ """Test request id is not duplicated in error message (case- insensitive)"""
260260 self .response .headers = {X_AMZN_TRACE_ID : "test-trace-id" }
261261 error = _format (HfHubHTTPError , "this is a message" , response = self .response )
262262 assert str (error ) == "this is a message (Amzn Trace ID: test-trace-id)"
263263 assert error .request_id == "test-trace-id"
264264
265265 def test_hf_hub_http_error_with_request_id_and_amzn_trace_id (self ) -> None :
266- """Test request id is not duplicated in error message (case insensitive)"""
266+ """Test request id is not duplicated in error message (case- insensitive)"""
267267 self .response .headers = {X_AMZN_TRACE_ID : "test-trace-id" , X_REQUEST_ID : "test-id" }
268268 error = _format (HfHubHTTPError , "this is a message" , response = self .response )
269269 assert str (error ) == "this is a message (Request ID: test-id)"
0 commit comments