diff --git a/test/async_/test_match_api.py b/test/async_/test_match_api.py index e3195448..4f549dd5 100644 --- a/test/async_/test_match_api.py +++ b/test/async_/test_match_api.py @@ -173,8 +173,9 @@ async def test_double_traverse(): results = [node async for node in qb._execute()] assert len(results) == 2 - assert results[0].name == "Decafe" - assert results[1].name == "Nescafe plus" + names = [n.name for n in results] + assert "Decafe" in names + assert "Nescafe plus" in names @mark_async_test diff --git a/test/sync_/test_match_api.py b/test/sync_/test_match_api.py index 170a7363..d9c90bb9 100644 --- a/test/sync_/test_match_api.py +++ b/test/sync_/test_match_api.py @@ -164,8 +164,9 @@ def test_double_traverse(): results = [node for node in qb._execute()] assert len(results) == 2 - assert results[0].name == "Decafe" - assert results[1].name == "Nescafe plus" + names = [n.name for n in results] + assert "Decafe" in names + assert "Nescafe plus" in names @mark_sync_test