Skip to content

Commit

Permalink
Add test for items with bytes
Browse files Browse the repository at this point in the history
Signed-off-by: Yohanna Lisnichuk <yohanitalisnichuk@gmail.com>
  • Loading branch information
yolile committed Jun 25, 2020
1 parent d5c3a6e commit 8248c3d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ def test_process_item():

assert pipeline.process_item(item, None) == item

item['data'] = item['data'].encode('ascii')
item['file_name'] = 'test2'

assert pipeline.process_item(item, None) == item


def test_process_item_error():
pipeline = Validate()
Expand Down

0 comments on commit 8248c3d

Please sign in to comment.