Say "35 trails", not "35 of 35 trails", when nothing is filtered out
Mirror to forge / mirror (push) Canceled after 0s
Validate / validate (push) Canceled after 0s
Validate / history (push) Canceled after 0s
Validate / site (push) Canceled after 0s
Validate / deploy (push) Canceled after 0s

The count above each set of rows keeps the "12 of 35 trails" form only
when some are filtered out, in the built pages and in the script alike.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-18 10:06:31 -07:00
1 parent 76622257b7
commit 5abd7b1ede
5 files changed
+50 -5

No files matched your search

+2 -1
View File
@@ -297,7 +297,8 @@ class BuiltVocabularyTest(unittest.TestCase):
doc = self.read("index.html")
n = len(re.findall(r'<li class="entry" ', doc))
self.assertEqual(n, len(records.load_records(ROOT)))
self.assertIn(f"<strong>{n}</strong> of {n} trails", doc)
self.assertIn(f"<strong>{n}</strong> trails</p>", doc)
self.assertNotIn(f"{n} of {n}", doc)
self.assertIn(f"{n} trails. Narrow them", doc)
def test_route_badges_link_to_the_routes_list(self):