From 8248c3dedb4a7eae05c861772fc18aee48cc346f Mon Sep 17 00:00:00 2001 From: Yohanna Lisnichuk Date: Thu, 25 Jun 2020 12:49:05 -0400 Subject: [PATCH] Add test for items with bytes Signed-off-by: Yohanna Lisnichuk --- tests/test_validate.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_validate.py b/tests/test_validate.py index 9dcbca08..6233a179 100644 --- a/tests/test_validate.py +++ b/tests/test_validate.py @@ -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()