Skip to content

Commit

Permalink
Update tests/test_spidermiddlewares.py
Browse files Browse the repository at this point in the history
Co-authored-by: James McKinney <[email protected]>
  • Loading branch information
yolile and jpmckinney authored Dec 5, 2024
1 parent 4c3ad75 commit 8cb868f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_spidermiddlewares.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ async def test_resize_package_middleware(sample, len_items, len_releases, encodi
assert item.number == i
assert len(item.data[key]) == len_releases
assert item.data_type == data_type
assert all('ocid' in entry for entry in item.data[key]) if ocid_fallback else True
assert all('ocid' in entry if ocid_fallback else 'ocid' not in entry for entry in item.data[key])


@pytest.mark.parametrize(('middleware_class', 'attribute', 'separator'), [
Expand Down

0 comments on commit 8cb868f

Please sign in to comment.