Rewrite the About page's opening for hikers, name the maintainer swaits, and stop typing counts by hand
The About page now opens with what the site is for: finding long trails, including ones the reader has not heard of. The maintainer is shown as swaits, linked to swaits.com. SOURCES.md no longer carries hand-typed trail counts, and tests derive the trail and route totals from the records. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
ba3e7dfd33
commit
d30c56a163
13 files changed
+42
-29
No files matched your search
@@ -13,10 +13,13 @@ class RecordsTest(unittest.TestCase):
|
||||
cls.recs = records.load_records()
|
||||
|
||||
def test_counts(self):
|
||||
self.assertEqual(len(self.recs), 224)
|
||||
self.assertEqual(sum(r["derived"]["kind"] == "route" for r in self.recs), 78)
|
||||
self.assertEqual(sum(r["derived"]["kind"] == "designated" for r in self.recs), 146)
|
||||
self.assertEqual(sum(r["derived"]["has_line"] for r in self.recs), 124)
|
||||
dirs = [d for d in os.listdir(records.ROOT) if os.path.isfile(os.path.join(records.ROOT, d, "trail.toml"))]
|
||||
self.assertEqual(len(self.recs), len(dirs))
|
||||
routes = sum(r["derived"]["kind"] == "route" for r in self.recs)
|
||||
designated = sum(r["derived"]["kind"] == "designated" for r in self.recs)
|
||||
self.assertEqual(routes + designated, len(self.recs))
|
||||
self.assertGreater(routes, 0)
|
||||
self.assertGreater(sum(r["derived"]["has_line"] for r in self.recs), 0)
|
||||
|
||||
def test_sorted_by_id(self):
|
||||
ids = [r["id"] for r in self.recs]
|
||||
|
||||
Reference in new issue
Block a user