fix: has search criteria had twisted logic

This commit is contained in:
2025-09-06 14:08:30 +02:00
parent a5754b2633
commit 0df36df9d8
2 changed files with 3 additions and 3 deletions

View File

@@ -106,5 +106,5 @@ class SearchTest(TestCase):
# We can't use assertContains because TestAdoption3 will always be in response at is included in map
# In order to test properly, we need to only care for the context that influences the list display
an_names = [a.name for a in response.context["adoption_notices"]]
self.assertTrue("TestAdoption1" in an_names) # Adoption in Berlin
self.assertFalse("TestAdoption3" in an_names) # Adoption in Stuttgart
self.assertTrue("TestAdoption1" in an_names) # Adoption in Berlin should be included
self.assertFalse("TestAdoption3" in an_names) # Adoption in Stuttgart should not be included