Move the Kekekabic and Pukaskwa Coastal trails to the left-out list, keep Timberline, and write out the rule for shorter trails
Mirror to forge / mirror (push) Canceled after 0s
Validate / validate (push) Canceled after 0s
Validate / history (push) Canceled after 0s
Validate / site (push) Canceled after 0s
Validate / deploy (push) Canceled after 0s

The Gila loop's chosen start is removed: the Forest Service names none.
The "under review" sentence is no longer accepted by the data check.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-19 12:02:51 -07:00
1 parent c15758a508
commit f2235c420d
35 files changed
+102 -338

No files matched your search

+13 -14
View File
@@ -14,31 +14,30 @@ import validate as V # noqa: E402
def check(rec):
errors, warnings = [], []
V.check_short_reason("t", rec, errors, warnings)
return errors, warnings
errors = []
V.check_short_reason("t", rec, errors)
return errors
class ShortReasonTests(unittest.TestCase):
def test_under_the_floor_needs_a_reason(self):
self.assertEqual(len(check({"length_km": 67})[0]), 1)
self.assertEqual(len(check({"length_km": 67, "short_reason": " "})[0]), 1)
self.assertEqual(len(check({"length_km": 67})), 1)
self.assertEqual(len(check({"length_km": 67, "short_reason": " "})), 1)
def test_under_the_floor_with_a_reason_passes(self):
self.assertEqual(check({"length_km": 67, "short_reason": "It takes five days."}), ([], []))
self.assertEqual(check({"length_km": 67, "short_reason": "It takes five days."}), [])
def test_at_or_over_the_floor_refuses_a_reason(self):
self.assertEqual(len(check({"length_km": 80, "short_reason": "It takes five days."})[0]), 1)
self.assertEqual(len(check({"length_km": 300, "short_reason": "x"})[0]), 1)
self.assertEqual(len(check({"length_km": 80, "short_reason": "It takes five days."})), 1)
self.assertEqual(len(check({"length_km": 300, "short_reason": "x"})), 1)
def test_at_or_over_the_floor_needs_nothing(self):
self.assertEqual(check({"length_km": 80}), ([], []))
self.assertEqual(check({"length_km": 1931}), ([], []))
self.assertEqual(check({"length_km": 80}), [])
self.assertEqual(check({"length_km": 1931}), [])
def test_the_under_review_sentence_is_a_warning_not_an_error(self):
errors, warnings = check({"length_km": 64, "short_reason": V.UNDER_REVIEW})
self.assertEqual(errors, [])
self.assertEqual(len(warnings), 1)
def test_the_old_placeholder_sentence_is_refused(self):
old = "Listed before the test was written; under review."
self.assertEqual(len(check({"length_km": 64, "short_reason": old})), 1)
if __name__ == "__main__":