From eecc3a508b16799a180017aeee5b8941b135189c Mon Sep 17 00:00:00 2001 From: Alex Petenchea Date: Thu, 30 Jan 2025 22:19:06 +0200 Subject: [PATCH] Updating fragile test, so the next DB upgrade won't make it fail. --- tests/test_cursor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_cursor.py b/tests/test_cursor.py index 80c8df2..184d7ed 100644 --- a/tests/test_cursor.py +++ b/tests/test_cursor.py @@ -50,7 +50,7 @@ def test_cursor_from_execute_query(db, col, docs): assert profile["parsing"] > 0 plan = cursor.plan() - assert set(plan.keys()) == { + expected_keys = { "nodes", "rules", "collections", @@ -59,6 +59,8 @@ def test_cursor_from_execute_query(db, col, docs): "estimatedNrItems", "isModificationQuery", } + for key in expected_keys: + assert key in plan assert clean_doc(cursor.next()) == docs[0] assert cursor.id == cursor_id