Reword the lists in the words people search with: the longest names its longest trail first, short thru-hikes and loops under 100 and 200 miles, week-long and other backpacking trips, backpacking loops; the week list gains pages for states and places
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b75d39c7b6
commit
4c72fd705e
7 files changed
+118
-28
No files matched your search
@@ -188,13 +188,13 @@ class PlaceAndListTitleTest(unittest.TestCase):
|
||||
title = lst.search_title(999)
|
||||
self.assertLessEqual(len(title), ROOM, title)
|
||||
self.assertIn("999", title)
|
||||
self.assertEqual(browse.by_key("loops").search_title(32), "Loop Hiking Trails: 32 Long Trail Loops")
|
||||
self.assertEqual(browse.by_key("loops").search_title(32), "Backpacking Loops: 32 Long Trail Loops")
|
||||
|
||||
def test_list_description_adds_to_the_title(self):
|
||||
lst = browse.by_key("under-100-miles")
|
||||
members = browse.members(lst, [fake(i, km=100) for i in range(1, 5)])
|
||||
title, desc = regions.list_page(lst, members, 20, S)[:2]
|
||||
self.assertTrue(title.startswith("Hiking Trails Under 100 Miles: 4"))
|
||||
self.assertTrue(title.startswith("Short Thru-Hikes and Loops Under 100 Miles: 4"))
|
||||
self.assertLessEqual(len(desc), common.DESCRIPTION_LIMIT)
|
||||
self.assertTrue(desc.startswith(lst.blurb))
|
||||
self.assertIn("4 trails", desc)
|
||||
|
||||
Reference in new issue
Block a user