pedagogy: fix search api when searching one letter (case sensitivity)

This commit is contained in:
2019-07-07 18:55:23 +02:00
parent 79243aece3
commit 30ccbdc32d
2 changed files with 5 additions and 1 deletions

View File

@ -616,6 +616,10 @@ class UVSearchTest(TestCase):
response = self.client.get(reverse("pedagogy:guide"), {"search": "P"})
self.assertContains(response, text="PA00")
# Search with first letter of UV code in lowercase
response = self.client.get(reverse("pedagogy:guide"), {"search": "p"})
self.assertContains(response, text="PA00")
# Search with UV manager
response = self.client.get(reverse("pedagogy:guide"), {"search": "HEYBERGER"})
self.assertContains(response, text="PA00")