Add seven guidebook routes from five books, with their authors
Ptarmigan-Glenns Lake-Highline Loop (52 mi), Rutherford Lake Loop (71.5), Deadman and Cloud Canyons (113.4), South Lake to North Lake (55.0), Milestone Basin and the Upper Kern (55.6), Eagle Cap Traverse (54.7) and Gospel Hump Loop (68). No tracks; start and end points from OpenStreetMap where the named trailhead is mapped. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
No files matched your search
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 18 KiB |
@@ -60,7 +60,7 @@ class ExtraPagesTest(unittest.TestCase):
|
||||
|
||||
def test_all_routes_on_routes_page(self):
|
||||
routes = [r for r in self.records if r["derived"]["kind"] == "route"]
|
||||
self.assertEqual(len(routes), 68)
|
||||
self.assertEqual(len(routes), 75)
|
||||
page = read_out("routes/index.html")
|
||||
import html as _html
|
||||
text = _html.unescape(re.sub(r"<[^>]+>", "", page)) # a credit naming two authors links each name
|
||||
|
||||
@@ -114,7 +114,7 @@ class HistorySectionTest(unittest.TestCase):
|
||||
|
||||
def test_real_records_all_show_their_history(self):
|
||||
recs = records.load_records()
|
||||
self.assertEqual(len(recs), 210)
|
||||
self.assertEqual(len(recs), 217)
|
||||
for rec in recs:
|
||||
part = trail.history_section(rec)
|
||||
self.assertIn("History of this record", part, rec["id"])
|
||||
|
||||
@@ -394,7 +394,7 @@ class RealDocumentsTest(unittest.TestCase):
|
||||
counter = TableCounter()
|
||||
counter.feed(md.render(read_doc("README.md")))
|
||||
counter.close()
|
||||
self.assertEqual(counter.counts, [142, 68])
|
||||
self.assertEqual(counter.counts, [142, 75])
|
||||
|
||||
def test_readme_num_class_present(self):
|
||||
self.assertIn('class="num"', md.render(read_doc("README.md")))
|
||||
|
||||
@@ -90,7 +90,7 @@ class BuiltSiteTest(unittest.TestCase):
|
||||
def test_one_detail_page_per_record(self):
|
||||
found = [d for d in os.listdir(os.path.join(OUT, "trails"))
|
||||
if os.path.isfile(os.path.join(OUT, "trails", d, "index.html"))]
|
||||
self.assertEqual(len(self.records), 210)
|
||||
self.assertEqual(len(self.records), 217)
|
||||
self.assertEqual(sorted(found), sorted(r["id"] for r in self.records))
|
||||
self.assertTrue(os.path.isfile(os.path.join(OUT, "index.html")))
|
||||
|
||||
|
||||
@@ -13,8 +13,8 @@ class RecordsTest(unittest.TestCase):
|
||||
cls.recs = records.load_records()
|
||||
|
||||
def test_counts(self):
|
||||
self.assertEqual(len(self.recs), 210)
|
||||
self.assertEqual(sum(r["derived"]["kind"] == "route" for r in self.recs), 68)
|
||||
self.assertEqual(len(self.recs), 217)
|
||||
self.assertEqual(sum(r["derived"]["kind"] == "route" for r in self.recs), 75)
|
||||
self.assertEqual(sum(r["derived"]["kind"] == "designated" for r in self.recs), 142)
|
||||
self.assertEqual(sum(r["derived"]["has_line"] for r in self.recs), 122)
|
||||
|
||||
|
||||
@@ -368,7 +368,7 @@ class AuthorTest(unittest.TestCase):
|
||||
old = authors.PROMINENT_MIN
|
||||
try:
|
||||
authors.PROMINENT_MIN = 5
|
||||
self.assertEqual({g["name"] for g in authors.prominent(gs)}, {"Brett Tucker", "Andrew Skurka", "Bruce Grubbs", "Douglas Lorain"})
|
||||
self.assertEqual({g["name"] for g in authors.prominent(gs)}, {"Brett Tucker", "Andrew Skurka", "Bruce Grubbs", "Douglas Lorain", "Mike White"})
|
||||
finally:
|
||||
authors.PROMINENT_MIN = old
|
||||
|
||||
|
||||