diff --git a/lemarche/www/tenders/tests.py b/lemarche/www/tenders/tests.py index 0156ad522..26438125d 100644 --- a/lemarche/www/tenders/tests.py +++ b/lemarche/www/tenders/tests.py @@ -1416,7 +1416,7 @@ def test_user_can_notify_not_interested_wish_with_siae_id(self): self.assertIsNone(tendersiae.detail_not_interested_click_date) detail_url = reverse("tenders:detail", kwargs={"slug": self.tender.slug}) + f"?siae_id={self.siae.id}" - response = self.client.get(detail_url) + response = self.client.get(detail_url, follow=True) # redirect self.assertContains(response, self.cta_message) self.assertNotContains(response, self.cta_message_success) @@ -1432,7 +1432,7 @@ def test_user_can_notify_not_interested_wish_with_authenticated_user(self): self.client.force_login(self.siae_user) detail_url = reverse("tenders:detail", kwargs={"slug": self.tender.slug}) - response = self.client.get(detail_url) + response = self.client.get(detail_url, follow=True) # redirect self.assertContains(response, self.cta_message) self.assertNotContains(response, self.cta_message_success) @@ -1445,7 +1445,7 @@ def test_user_can_notify_not_interested_wish_with_authenticated_user(self): self.assertIsNotNone(tendersiae.detail_not_interested_click_date) self.assertEqual(tendersiae.detail_not_interested_feedback, "reason") - response = self.client.get(detail_url) + response = self.client.get(detail_url, follow=True) # redirect self.assertContains(response, self.cta_message_success) self.assertNotContains(response, self.cta_message)