From d6740eb302341acd954f3c51328b4c58d1317519 Mon Sep 17 00:00:00 2001 From: moanos Date: Tue, 31 Dec 2024 13:14:13 +0100 Subject: [PATCH] test: adjust to reflect changed field name --- src/tests/test_views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/test_views.py b/src/tests/test_views.py index cbd3c05..3bf3947 100644 --- a/src/tests/test_views.py +++ b/src/tests/test_views.py @@ -92,7 +92,7 @@ class SearchTest(TestCase): berlin = Location.get_location_from_string("Berlin") adoption1.location = berlin adoption1.save() - stuttgart = Location.get_location_from_string("Tübingen") + stuttgart = Location.get_location_from_string("Stuttgart") adoption3.location = stuttgart adoption3.save() @@ -120,7 +120,7 @@ class SearchTest(TestCase): self.assertNotContains(response, "TestAdoption2") def test_plz_search(self): - response = self.client.post(reverse('search'), {"max_distance": 100, "location": "Berlin", "sex": "A"}) + response = self.client.post(reverse('search'), {"max_distance": 100, "location_string": "Berlin", "sex": "A"}) self.assertEqual(response.status_code, 200) self.assertContains(response, "TestAdoption1") self.assertNotContains(response, "TestAdoption3")