-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preliminary conformance test and mongo implementation
- Loading branch information
Showing
6 changed files
with
940 additions
and
732 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from __future__ import absolute_import | ||
|
||
import gripql | ||
|
||
def test_sort_name(man): | ||
errors = [] | ||
|
||
G = man.setGraph("swapi") | ||
|
||
q = G.query().V().hasLabel("Character").sort( "name" ) | ||
|
||
last = "" | ||
for row in q: | ||
#print(row) | ||
if row["data"]["name"] < last: | ||
errors.append("incorrect sort: %s < %s" % (row["data"]["name"], last)) | ||
last = row["data"]["name"] | ||
return errors | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.