pull/5006/head
Hammy Goonan 2019-01-17 16:05:34 +11:00 zatwierdzone przez Bertrand Bordage
rodzic af6bf164ec
commit 7c749e1373
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -107,6 +107,11 @@ class TestPostgresSearchBackend(BackendTests, TestCase):
models.Book)
self.assertUnsortedListEqual([r.title for r in results], [])
# Backslashes should be escaped inside each tsquery term.
results = self.backend.autocomplete("backslash\\",
models.Book)
self.assertUnsortedListEqual([r.title for r in results], [])
# Now suffixes.
results = self.backend.autocomplete("Something:B", models.Book)
self.assertUnsortedListEqual([r.title for r in results], [])