Skip to content

Commit

Permalink
test_pluck: remove bytesio
Browse files Browse the repository at this point in the history
Signed-off-by: Yohanna Lisnichuk <yohanitalisnichuk@gmail.com>
  • Loading branch information
yolile committed Feb 25, 2021
1 parent 153f131 commit 107fbe8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/pipelines/test_pluck.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import json
from io import BytesIO

import ijson
import pytest

from kingfisher_scrapy.exceptions import SpiderArgumentError
Expand Down Expand Up @@ -123,7 +121,7 @@ def test_process_item_incomplete_json():
pipeline = Pluck()
item = File({
'file_name': 'test',
'data': BytesIO(b'{"key": "value"'),
'data': b'{"key": "value"',
'data_type': 'release_package',
'url': 'http://test.com',
})
Expand Down

0 comments on commit 107fbe8

Please sign in to comment.