Match semantic tests to formatted archive counts
Browse filesKeep the existing semantic assertions while matching the generated human-readable thousands separators in the 1,051-file README counts.
250 unmodified lines2512522532542542552562579 unmodified lines267268269270270271272273250 unmodified lines audio_count = sum(row["has_audio"].lower() == "true" for row in active) percentage = 100 * audio_count / len(active) readme = (ROOT / "README.md").read_text(encoding="utf-8") expected = rf"{audio_count} of\s+{len(active)}, or {percentage:.1f}%" expected = rf"{audio_count:,} of\s+{len(active):,}, or {percentage:.1f}%" self.assertRegex(readme, re.compile(expected))
def test_readme_headline_matches_active_index_facts(self) -> None:9 unmodified lines f"{latest.strftime('%B')} {latest.day}, {latest.year}" )
self.assertIn(f"{len(active)} indexed video files", normalized) self.assertIn(f"{len(active):,} indexed video files", normalized) self.assertIn(date_span, normalized) self.assertIn(f"{total_bytes:,} indexed video bytes", normalized)
tools/test_semantic_consistency.py+2-2