Record the inputs of every estimate for the monthly check, and test that every trail has a season with its provenance

This commit is contained in:
swaits committed 2026-11-20 13:10:13 -07:00
1 parent 191b5cfc4f
commit 713fff78df
4 files changed
+721

No files matched your search

+5
View File
@@ -117,6 +117,11 @@ class SeasonBasisTest(unittest.TestCase):
def test_an_estimate_with_a_method_and_a_climate_source_passes(self):
self.assertEqual(estimate(), [])
def test_an_estimate_phrase_is_built_from_its_months(self):
errors = estimate(season="Summer")
self.assertTrue(any("built from" in e for e in errors), errors)
self.assertEqual(check(season="Summer"), []) # a page's own words stand
def test_an_estimate_needs_a_method(self):
errors = estimate(season_method=None)
self.assertTrue(any("season_method" in e for e in errors), errors)