mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-20 13:01:56 +00:00
Fix search tests so that test_filters_in_subquery catches the values_list bug addressed by #3957
This commit is contained in:
parent
447f163d2e
commit
0514608d80
1 changed files with 2 additions and 2 deletions
|
|
@ -67,7 +67,7 @@ class BackendTests(WagtailTestUtils):
|
|||
self.testb = testb
|
||||
|
||||
testc = models.SearchTestChild()
|
||||
testc.title = "Hello"
|
||||
testc.title = "Hello Kitty"
|
||||
testc.live = True
|
||||
testc.content = "Hello"
|
||||
testc.subtitle = "Foo"
|
||||
|
|
@ -135,7 +135,7 @@ class BackendTests(WagtailTestUtils):
|
|||
self.assertEqual(set(results), {self.testb, self.testc.searchtest_ptr})
|
||||
|
||||
def test_filters_in_list(self):
|
||||
live_page_titles = ['Hello']
|
||||
live_page_titles = ['Hello', 'Hello Kitty']
|
||||
results = self.backend.search(None, models.SearchTest,
|
||||
filters=dict(title__in=live_page_titles))
|
||||
self.assertEqual(set(results), {self.testb, self.testc.searchtest_ptr})
|
||||
|
|
|
|||
Loading…
Reference in a new issue