This is an automated email from the ASF dual-hosted git repository. vatamane pushed a commit to branch make-test-more-deterministic in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 323b591d016e9a68b8ef32b04271967511d79aa9 Author: Nick Vatamaniuc <[email protected]> AuthorDate: Tue Oct 14 16:02:52 2025 -0400 Use determistic doc IDs in Mango key test Noticed in https://github.com/apache/couchdb/pull/5699 when changing the new uuids scheme it affected the results, so make the IDs deterministic so test results don't depend on uuid type. --- src/mango/test/04-key-tests.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mango/test/04-key-tests.py b/src/mango/test/04-key-tests.py index 998f17ee5..1934d4266 100644 --- a/src/mango/test/04-key-tests.py +++ b/src/mango/test/04-key-tests.py @@ -15,8 +15,9 @@ import mango import unittest TEST_DOCS = [ - {"type": "complex_key", "title": "normal key"}, + {"_id": "100", "type": "complex_key", "title": "normal key"}, { + "_id": "200", "type": "complex_key", "title": "key with dot", "dot.key": "dot's value", @@ -24,14 +25,16 @@ TEST_DOCS = [ "name.first": "Kvothe", }, { + "_id": "300", "type": "complex_key", "title": "key with peso", "$key": "peso", "deep": {"$key": "deep peso"}, "name": {"first": "Master Elodin"}, }, - {"type": "complex_key", "title": "unicode key", "": "apple"}, + {"_id": "400", "type": "complex_key", "title": "unicode key", "": "apple"}, { + "_id": "500", "title": "internal_fields_format", "utf8-1[]:string": "string", "utf8-2[]:boolean[]": True,
