Skip to content

Commit 18404df

Browse files
committed
/tests/rest_resource_crawl/ also check response body
if testing for bytes
1 parent a28cd02 commit 18404df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_resource_crawl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,6 @@ def test_passing_errback(self, server, method):
401401
msg = 'ERROR: Logging some error'
402402
assert re.search(msg, log_file)
403403

404-
405404
@pytest.mark.parametrize("method", [
406405
perform_get, perform_post
407406
])
@@ -412,3 +411,4 @@ def test_bytes_in_item(self, server, method):
412411
{"url": server.target_site.url("page1.html"),
413412
'callback': 'return_bytes'})
414413
assert res.status_code == 200
414+
assert res.json()["items"] == [{'name': 'Some bytes here'}]

0 commit comments

Comments
 (0)