Skip to content

Commit 609c561

Browse files
committed
Add note about insufficient test
1 parent 05e3ade commit 609c561

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

graphene_sqlalchemy/tests/test_sort_enums.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,9 @@ def makeNodes(nodeList):
381381

382382
result = schema.execute(queryNoSort, context_value={"session": session})
383383
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.
384387
assert [node["node"]["name"] for node in result.data["noSort"]["edges"]] == [
385388
node["node"]["name"] for node in result.data["noDefaultSort"]["edges"]
386389
]

0 commit comments

Comments
 (0)