We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a3e406 commit 7e78181Copy full SHA for 7e78181
test/test.py
@@ -597,9 +597,11 @@ def testTags(self):
597
598
client.create_index((TextField('txt'), TagField('tags')))
599
600
- tags = 'foo,foo bar,hello;world'
+ tags = 'foo,foo bar,hello;world'
601
+ tags2 = 'soba,ramen'
602
603
client.add_document('doc1', txt = 'fooz barz', tags = tags)
604
+ client.add_document('doc2', txt = 'noodles', tags = tags2)
605
606
for i in r.retry_with_rdb_reload():
607
waitForIndex(r, 'idx')
@@ -620,9 +622,7 @@ def testTags(self):
620
622
self.assertEqual(1, res.total)
621
623
624
q2 = client.tagvals('tags')
- self.assertEqual(tags.split(','), q2)
-
625
+ self.assertEqual(tags.split(',') + tags2.split(','), q2)
626
627
def testTextFieldSortableNostem(self):
628
conn = self.redis()
0 commit comments