From a732e69251be7d4e4ab7be4d40bd90b53412dd52 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Sat, 21 Nov 2026 04:39:19 +0100 Subject: [PATCH] fix: read the release total in its own unit The large-files notes print the total through size_text since the byte counts were unified: 1022.4 MB, the unit of the rows above it, where the test still expected 1.0 GB. --- tests/test_audit_regressions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_audit_regressions.py b/tests/test_audit_regressions.py index 97d2792ad..c53526486 100644 --- a/tests/test_audit_regressions.py +++ b/tests/test_audit_regressions.py @@ -2807,7 +2807,8 @@ class ReleaseAssetsMatchTheCollection(unittest.TestCase): self.assertIn("| [whoopee.zip](https://github.com/Abdess/retrobios/releases/download/large-files/whoopee.zip) | Toaplan Whoopee samples | 212.4 MB |", body) self.assertNotIn("9" * 40, body) self.assertNotIn("small.bin", body) - self.assertIn("4 files, 1.0 GB total", body) + # The total reads in the unit of the rows above it: 1022.4 MB, not 1.0 GB. + self.assertIn("4 files, 1022.4 MB total", body) self.assertEqual(body.index("## Console firmware"), min( body.index(h) for h in ("## Console firmware", "## Arcade", "## Not indexed") ))