We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2f8d6a commit 0f20cc9Copy full SHA for 0f20cc9
1 file changed
tests/unit/test_html_utils.py
@@ -281,9 +281,9 @@ def test_skips_non_html_response(self):
281
282
def test_handles_response_without_content(self):
283
"""Response without content attribute should be returned unchanged."""
284
+ # spec=["get"] ensures mock only has 'get' attribute, no 'content'
285
response = MagicMock(spec=["get"])
286
response.get.return_value = "text/html"
- del response.content # Remove content attribute
287
288
result = normalize_html_response(response)
289
0 commit comments