Skip to content

Commit

Permalink
Fix failing test: check any, not first (#958)
Browse files Browse the repository at this point in the history
  • Loading branch information
blms committed Dec 5, 2023
1 parent 04c8f9b commit 6990da8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/ingest/tests/test_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ def test_adding_related_link_to_remote_ingest_manifest(self):
remote_url='https://swoop.net/manifest.json' # pylint: disable=line-too-long
)
manifest = services.create_manifest(remote)
related_link = manifest.relatedlink_set.first()
assert related_link.link == remote.remote_url
related_links = manifest.relatedlink_set.all()
assert any([link.link == remote.remote_url for link in related_links])

httpretty.disable()

Expand Down

0 comments on commit 6990da8

Please sign in to comment.