Record the Waitukubuli National Trail as considered and left out, being outside the United States and Canada
The entry keeps what the trail's own site and Kate Siber's 100 Hikes of a Lifetime say about it, in case the catalogue's area widens. A new left-out reason, outside-us-canada, allows a country other than US or CA. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
4d136f562e
commit
f269cd8872
6 files changed
+38
-4
No files matched your search
@@ -63,6 +63,12 @@ class LeftOutTest(unittest.TestCase):
|
||||
errors = check([dict(GOOD, reason="too-short")])
|
||||
self.assertTrue(any("reason" in e for e in errors))
|
||||
|
||||
def test_outside_us_canada(self):
|
||||
ok = dict(GOOD, reason="outside-us-canada", country="DM", regions=["Dominica"])
|
||||
self.assertEqual(check([ok]), [])
|
||||
self.assertTrue(any("country" in e for e in check([dict(ok, country="US")])))
|
||||
self.assertTrue(any("country" in e for e in check([dict(ok, country="Dominica")])))
|
||||
|
||||
def test_bad_country_and_region(self):
|
||||
self.assertTrue(any("country" in e for e in check([dict(GOOD, country="MX")])))
|
||||
self.assertTrue(any("region" in e for e in check([dict(GOOD, regions=["XX"])])))
|
||||
|
||||
Reference in new issue
Block a user