Whole file

mdowds/mock-firestore

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

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

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

Fix _apply_cursor for first element (#32)

The change

103103 index = idx
104104 else:
105105 index = None
106- if index:
106+ if index is not None:
107107 if before and start:
108108 return islice(docs, index, None, None)
109109 elif not before and start:

The check that tells the two apart

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

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 itc9491d08047ce3d73a47f3655786f9c8443cab5c
Broken version dated2020-10-24
Modulemockfirestore.query
Units changedQuery
Fingerprint2168ff4d0b9e66da
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