Skip to content

Commit 0f20cc9

Browse files
committed
Fix
1 parent a2f8d6a commit 0f20cc9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/unit/test_html_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,9 @@ def test_skips_non_html_response(self):
281281

282282
def test_handles_response_without_content(self):
283283
"""Response without content attribute should be returned unchanged."""
284+
# spec=["get"] ensures mock only has 'get' attribute, no 'content'
284285
response = MagicMock(spec=["get"])
285286
response.get.return_value = "text/html"
286-
del response.content # Remove content attribute
287287

288288
result = normalize_html_response(response)
289289

0 commit comments

Comments
 (0)