1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-02-26 06:26:29 +00:00

Compare commits

..

No commits in common. "5d13d9bc1690e49baaecf7c052c2239d03ce4634" and "8222f3b7811557d2ca043bc5a98e024796326c37" have entirely different histories.

2 changed files with 4 additions and 6 deletions

View File

@ -413,18 +413,16 @@ class TestRegistration(TestCase):
"""
Try to search some things.
"""
response = self.client.get(reverse("haystack_search") + "?q=" + self.user.email + "&models=auth.user")
response = self.client.get(reverse("haystack_search") + "?q=" + self.user.last_name)
self.assertEqual(response.status_code, 200)
self.assertTrue(response.context["object_list"])
response = self.client.get(reverse("haystack_search") + "?q=" +
str(self.coach.registration.professional_activity)
+ "&models=registration.CoachRegistration")
str(self.coach.registration.professional_activity))
self.assertEqual(response.status_code, 200)
self.assertTrue(response.context["object_list"])
response = self.client.get(reverse("haystack_search") + "?q=" +
self.student.registration.school + "&models=registration.StudentRegistration")
self.student.registration.school)
self.assertEqual(response.status_code, 200)
self.assertTrue(response.context["object_list"])

View File

@ -1,7 +1,7 @@
[tox]
envlist =
py310
py311
py312
linters
skipsdist = True