mirror of https://github.com/scrapy/scrapy.git
fix: test_cache_json_response
This commit is contained in:
parent
19867659f3
commit
fd4292b722
|
|
@ -844,7 +844,7 @@ class TextResponseTest(BaseResponseTest):
|
|||
with mock.patch("json.loads") as mock_json:
|
||||
for _ in range(2):
|
||||
json_response.json()
|
||||
mock_json.assert_called_once_with(json_body.decode())
|
||||
mock_json.assert_called_once_with(json_body)
|
||||
|
||||
|
||||
class HtmlResponseTest(TextResponseTest):
|
||||
|
|
|
|||
Loading…
Reference in New Issue