Add the Tonto Trail, the Maricopa Trail and the Across Utah Route
Three trails found by a sweep of southern Utah and northern Arizona: - Tonto Trail (Grand Canyon National Park, 95 mi), with a track from OpenStreetMap relation 2836546. - Maricopa Trail (Maricopa County, more than 315 mi), with a track from OpenStreetMap relation 4020964 and its side routes as alternates. The county's own map data is not used: its terms forbid commercial reuse. - Across Utah Route (Jamal Green, about 700 mi), a route with no track; the record points to the author's pages. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
601235d2cb
commit
c11a72a7dd
18 files changed
+293
-9
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), 51)
|
||||
self.assertEqual(len(routes), 52)
|
||||
page = read_out("routes/index.html")
|
||||
import html as _html
|
||||
text = _html.unescape(page)
|
||||
|
||||
@@ -394,7 +394,7 @@ class RealDocumentsTest(unittest.TestCase):
|
||||
counter = TableCounter()
|
||||
counter.feed(md.render(read_doc("README.md")))
|
||||
counter.close()
|
||||
self.assertEqual(counter.counts, [132, 51])
|
||||
self.assertEqual(counter.counts, [134, 52])
|
||||
|
||||
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), 183)
|
||||
self.assertEqual(len(self.records), 186)
|
||||
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), 183)
|
||||
self.assertEqual(sum(r["derived"]["kind"] == "route" for r in self.recs), 51)
|
||||
self.assertEqual(sum(r["derived"]["kind"] == "designated" for r in self.recs), 132)
|
||||
self.assertEqual(sum(r["derived"]["has_line"] for r in self.recs), 105)
|
||||
self.assertEqual(len(self.recs), 186)
|
||||
self.assertEqual(sum(r["derived"]["kind"] == "route" for r in self.recs), 52)
|
||||
self.assertEqual(sum(r["derived"]["kind"] == "designated" for r in self.recs), 134)
|
||||
self.assertEqual(sum(r["derived"]["has_line"] for r in self.recs), 107)
|
||||
|
||||
def test_sorted_by_id(self):
|
||||
ids = [r["id"] for r in self.recs]
|
||||
|
||||
Reference in new issue
Block a user