Skip to content

Commit 39b80db

Browse files
committed
Improve test case
1 parent e5a0969 commit 39b80db

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_gql.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ def test_order_by_multiple_properties(self, conn):
222222
result = conn.execute(text("SELECT * FROM users ORDER BY name ASC, age DESC"))
223223
data = result.all()
224224
assert len(data) == 3, "Expected 3 rows ordered by name ASC, age DESC"
225-
assert data[0].name == "Travis 'Ghost' Hayes"
226-
assert data[1].name == "Elmerulia Frixell"
225+
assert data[0].name == "Elmerulia Frixell"
226+
assert data[1].name == "Travis 'Ghost' Hayes"
227227
assert data[2].name == "Virginia Robertson"
228228

229229
def test_order_by_without_direction(self, conn):
@@ -299,7 +299,7 @@ def test_key_literal_with_project_and_namespace(self, conn):
299299

300300
def test_array_literal(self, conn):
301301
"""Test ARRAY(value1, value2, ...)"""
302-
result = conn.execute(text("SELECT * FROM users WHERE tags = ARRAY('admin', 'user')"))
302+
result = conn.execute(text("SELECT * FROM users WHERE tags = ARRAY('Wild', 'house')"))
303303
data = result.all()
304304
assert len(data) >= 0, "Expected rows matching ARRAY literal"
305305

0 commit comments

Comments
 (0)