Add a hiker's track of the California coast, and the Washington Coast Trail
The California Coastal Trail gets its first track: one hiker's walk of the whole coast, shared under CC BY 4.0 on issue 1, with gaps at each water crossing and at the Camp Pendleton closure, and the hiker's optional routes as alternates. The published length is unchanged. The Washington Coast Trail is a new route record by the same author, Cape Disappointment to Cape Flattery, about 180 miles, with the author's track. Bay crossings and bus rides are gaps between parts, and the record says how each is made. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
51a393ec40
commit
641c899409
23 files changed
+183
-28
No files matched your search
@@ -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), 57)
|
||||
self.assertEqual(len(routes), 58)
|
||||
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), 196)
|
||||
self.assertEqual(len(recs), 197)
|
||||
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, [139, 57])
|
||||
self.assertEqual(counter.counts, [139, 58])
|
||||
|
||||
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), 196)
|
||||
self.assertEqual(len(self.records), 197)
|
||||
self.assertEqual(sorted(found), sorted(r["id"] for r in self.records))
|
||||
self.assertTrue(os.path.isfile(os.path.join(OUT, "index.html")))
|
||||
|
||||
|
||||
@@ -13,10 +13,10 @@ class RecordsTest(unittest.TestCase):
|
||||
cls.recs = records.load_records()
|
||||
|
||||
def test_counts(self):
|
||||
self.assertEqual(len(self.recs), 196)
|
||||
self.assertEqual(sum(r["derived"]["kind"] == "route" for r in self.recs), 57)
|
||||
self.assertEqual(len(self.recs), 197)
|
||||
self.assertEqual(sum(r["derived"]["kind"] == "route" for r in self.recs), 58)
|
||||
self.assertEqual(sum(r["derived"]["kind"] == "designated" for r in self.recs), 139)
|
||||
self.assertEqual(sum(r["derived"]["has_line"] for r in self.recs), 118)
|
||||
self.assertEqual(sum(r["derived"]["has_line"] for r in self.recs), 120)
|
||||
|
||||
def test_sorted_by_id(self):
|
||||
ids = [r["id"] for r in self.recs]
|
||||
|
||||
Reference in new issue
Block a user