Skip to content

Commit

Permalink
Rename variable. Add TODO comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
tartley committed Mar 28, 2023
1 parent c1cdb27 commit af46402
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/integration/test_demo_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,10 @@ def test_gallery_rss(build, output_dir):
publish_date='Mon, 27 Mar 2023 18:18:55 GMT',
),
]
for item, expected in zip(parsed.feed, expected_items):
actual = to_dict(item, 'title', 'link', 'publish_date')
# TODO The use of 'zip' here is faulty.
# It silently stops at the length of the shortest iterable
for actual_obj, expected in zip(parsed.feed, expected_items):
actual = to_dict(actual_obj, 'title', 'link', 'publish_date')
assert actual == expected


Expand Down

0 comments on commit af46402

Please sign in to comment.