Skip to content

Commit 7e78181

Browse files
committed
review suggestions
1 parent 5a3e406 commit 7e78181

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -597,9 +597,11 @@ def testTags(self):
597597

598598
client.create_index((TextField('txt'), TagField('tags')))
599599

600-
tags = 'foo,foo bar,hello;world'
600+
tags = 'foo,foo bar,hello;world'
601+
tags2 = 'soba,ramen'
601602

602603
client.add_document('doc1', txt = 'fooz barz', tags = tags)
604+
client.add_document('doc2', txt = 'noodles', tags = tags2)
603605

604606
for i in r.retry_with_rdb_reload():
605607
waitForIndex(r, 'idx')
@@ -620,9 +622,7 @@ def testTags(self):
620622
self.assertEqual(1, res.total)
621623

622624
q2 = client.tagvals('tags')
623-
self.assertEqual(tags.split(','), q2)
624-
625-
625+
self.assertEqual(tags.split(',') + tags2.split(','), q2)
626626

627627
def testTextFieldSortableNostem(self):
628628
conn = self.redis()

0 commit comments

Comments
 (0)