Skip to content

Commit

Permalink
Raise information about different length (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
mabelvj authored and fcanobrash committed Dec 3, 2019
1 parent 37e4a8a commit 6799861
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scrapy_autounit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,9 @@ def test(self):
if any(item == NO_ITEM_MARKER for item in (cb_obj, fx_item)):
raise AssertionError(
"The fixture's data length doesn't match with "
"the current callback's output length."
"the current callback's output length. "
"Expected %s elements, found %s" % (
len(fx_result), index + 1 + len(list(result)))
)

cb_obj = parse_object(cb_obj, spider)
Expand Down

0 comments on commit 6799861

Please sign in to comment.