Test query search ordre
Test that the order comes out as expected when doing a query
This commit is contained in:
parent
76856aadc7
commit
1e011d93d1
@ -256,6 +256,11 @@ def test_query():
|
||||
|
||||
table.count().should.equal(4)
|
||||
|
||||
results = table.query(forum_name__eq='the-key', subject__gt='1',consistent=True)
|
||||
expected = ["123", "456", "789"]
|
||||
for index, item in enumerate(results):
|
||||
item["subject"].should.equal(expected[index])
|
||||
|
||||
results = table.query(forum_name__eq='the-key', subject__gt='1',consistent=True)
|
||||
sum(1 for _ in results).should.equal(3)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user