We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05e3ade commit 609c561Copy full SHA for 609c561
graphene_sqlalchemy/tests/test_sort_enums.py
@@ -381,6 +381,9 @@ def makeNodes(nodeList):
381
382
result = schema.execute(queryNoSort, context_value={"session": session})
383
assert not result.errors
384
+ # TODO: SQLite usually returns the results ordered by primary key,
385
+ # so we cannot test this way whether sorting actually happens or not.
386
+ # Also, no sort order is guaranteed by SQLite if "no order" by is used.
387
assert [node["node"]["name"] for node in result.data["noSort"]["edges"]] == [
388
node["node"]["name"] for node in result.data["noDefaultSort"]["edges"]
389
]
0 commit comments