mirror of
https://github.com/ae-utbm/sith.git
synced 2024-10-31 19:38:04 +00:00
pedagogy: allow search on uv title
This commit is contained in:
parent
b4b7817baa
commit
d03835d737
@ -1,2 +1,3 @@
|
|||||||
{{ object.code }}
|
{{ object.code }}
|
||||||
{{ object.manager }}
|
{{ object.manager }}
|
||||||
|
{{ object.title }}
|
@ -1,2 +1,3 @@
|
|||||||
{{ object.code }}
|
{{ object.code }}
|
||||||
{{ object.manager }}
|
{{ object.manager }}
|
||||||
|
{{ object.title }}
|
||||||
|
@ -620,6 +620,12 @@ class UVSearchTest(TestCase):
|
|||||||
response = self.client.get(reverse("pedagogy:guide"), {"search": "p"})
|
response = self.client.get(reverse("pedagogy:guide"), {"search": "p"})
|
||||||
self.assertContains(response, text="PA00")
|
self.assertContains(response, text="PA00")
|
||||||
|
|
||||||
|
# Search with UV title
|
||||||
|
response = self.client.get(
|
||||||
|
reverse("pedagogy:guide"), {"search": "participation"}
|
||||||
|
)
|
||||||
|
self.assertContains(response, text="PA00")
|
||||||
|
|
||||||
# Search with UV manager
|
# Search with UV manager
|
||||||
response = self.client.get(reverse("pedagogy:guide"), {"search": "HEYBERGER"})
|
response = self.client.get(reverse("pedagogy:guide"), {"search": "HEYBERGER"})
|
||||||
self.assertContains(response, text="PA00")
|
self.assertContains(response, text="PA00")
|
||||||
|
Loading…
Reference in New Issue
Block a user