mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Refs #31304 -- Added tests for using __search lookup with combined SearchQuerys with the same config.
This commit is contained in:
parent
dd704c6705
commit
e2417010da
@ -365,6 +365,15 @@ class TestCombinations(GrailTestData, PostgreSQLTestCase):
|
|||||||
)
|
)
|
||||||
self.assertCountEqual(searched, [self.french, self.verse2])
|
self.assertCountEqual(searched, [self.french, self.verse2])
|
||||||
|
|
||||||
|
def test_combined_configs(self):
|
||||||
|
searched = Line.objects.filter(
|
||||||
|
dialogue__search=(
|
||||||
|
SearchQuery('nostrils', config='simple') &
|
||||||
|
SearchQuery('bowels', config='simple')
|
||||||
|
),
|
||||||
|
)
|
||||||
|
self.assertSequenceEqual(searched, [self.verse2])
|
||||||
|
|
||||||
@skipUnlessDBFeature('has_phraseto_tsquery')
|
@skipUnlessDBFeature('has_phraseto_tsquery')
|
||||||
def test_combine_raw_phrase(self):
|
def test_combine_raw_phrase(self):
|
||||||
searched = Line.objects.filter(
|
searched = Line.objects.filter(
|
||||||
|
Loading…
Reference in New Issue
Block a user