From a4f490fc54c8f0beaff5b25f88948021bf47675c Mon Sep 17 00:00:00 2001 From: edithatogo <15080672+edithatogo@users.noreply.github.com> Date: Fri, 31 Jul 2026 03:55:10 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20Add=20tests=20for=20changes=5Fto?= =?UTF-8?q?=5Fjson?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🎯 What: Addressed the testing gap for the `changes_to_json` function in `contracts/tools/src/pic_contracts/diff.py`. 📊 Coverage: Added tests covering scenarios with an empty list of changes and a populated list of `ParameterChange` objects. The populated list test ensures the expected JSON format matches the data structure natively without being fragile to formatting spaces. ✨ Result: Increased test reliability and coverage for `changes_to_json` in the codebase.