From d44ac068ff3a6b744b99758220d1b44c5e32c720 Mon Sep 17 00:00:00 2001 From: vidit choudhary <153429790+vidit-16@users.noreply.github.com> Date: Wed, 7 Oct 2026 22:37:25 +0530 Subject: [PATCH] README: 124 tests, and the hand-over in mutation testing --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ee7c04e..2bdb934 100644 --- a/README.md +++ b/README.md @@ -217,7 +217,7 @@ check below. .venv/Scripts/python.exe -m unittest discover -s tests -v ``` -122 tests, with no network or AWS account needed. Besides accounts, reporting, +124 tests, with no network or AWS account needed. Besides accounts, reporting, the desk flow from drop-off and two-sided hand-over to collection code, admin, CSRF, rate limits, security headers and uploads, they cover place names (aliases, misspellings, Kannada and Hindi, @@ -236,11 +236,12 @@ Two more checks live in `tools/`: map, place matching, Retrace, and that reporting and admin need a sign-in. It only reads, so it is safe on the live site. - **`tools/mutate.py`** is mutation testing for the code where a quiet bug would - hurt most: place matching, Retrace, collection codes, escalation and placing - reports. It makes one small change at a time (a comparison flipped, `and` for + hurt most: place matching, Retrace, collection codes, escalation, placing + reports and the two-sided hand-over. It makes one small change at a time (a comparison flipped, `and` for `or`, a number nudged) and checks that the tests notice. Its first run found a real bug ("power bank" matched the bank in the Main Block) and ten untested - behaviours, all now covered. What survives now is harmless: timestamp + behaviours, all now covered, and every hand-over mutant is caught. What + survives elsewhere is harmless: timestamp boundaries to the microsecond, rounding, and score weights that do not change the order of results.