Whole file

mdowds/mock-firestore

The author described this change as Fix _apply_cursor for similar objects (#34). It counts as a record because the check below fails on the code as it stood at 2e1ebb817 and passes on 128a622ed, with nothing else changed between the two runs.

Fix saved2020-10-24
Sharing licenceMIT · LICENSE
Change size+1 0

What the code was meant to do, written into the code itself as a save note

Fix _apply_cursor for similar objects (#34)

The change

103103 index = idx
104104 else:
105105 index = None
106+ break
106107 if index is not None:
107108 if before and start:
108109 return islice(docs, index, None, None)

The check that tells the two apart

failpass·tests/test_collection_reference.py::TestCollectionReference::test_collection_start_after_similar_objects

Check file tests/test_collection_reference.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.

Origin and history

The code before it2e1ebb817ba98a5e34700940bdc285bf4c318662
Broken version dated2020-10-24
Modulemockfirestore.query
Units changedQuery
Fingerprintc9c82a4b10ce6180
Checked2026-08-18 by goldset/0.1

Every field above is generated by our program. None of it is written by hand.

Other bugs found in mdowds/mock-firestore