From 6990da879b82eca570c1be77cd9d3c0e8d45dc04 Mon Sep 17 00:00:00 2001 From: Ben Silverman Date: Tue, 5 Dec 2023 12:56:13 -0500 Subject: [PATCH] Fix failing test: check any, not first (#958) --- apps/ingest/tests/test_services.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/ingest/tests/test_services.py b/apps/ingest/tests/test_services.py index d141b64c..1273e77a 100644 --- a/apps/ingest/tests/test_services.py +++ b/apps/ingest/tests/test_services.py @@ -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()