Update two tests that counted on the 109 seasons or on a trail with none
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bb24edd9df
commit
a41fcad59e
2 files changed
+2
-2
No files matched your search
@@ -95,7 +95,7 @@ class TableTest(unittest.TestCase):
|
||||
r = refresh.load_toml(os.path.join(V.ROOT, tid, "trail.toml"))
|
||||
if (r.get("hike") or {}).get("season"):
|
||||
expected += 1
|
||||
self.assertEqual(expected, 109)
|
||||
self.assertGreaterEqual(expected, 109)
|
||||
self.assertEqual(len(rows), expected)
|
||||
for row in rows:
|
||||
self.assertIn(row["suggested"], season.BASES)
|
||||
|
||||
@@ -195,7 +195,7 @@ class InBrief(unittest.TestCase):
|
||||
|
||||
def test_trail_without_a_track_and_french_name(self):
|
||||
free = self.sentences(load("circle-of-solitude"))
|
||||
self.assertTrue(free[-1].startswith("This site has no GPX for it"))
|
||||
self.assertTrue(any("this site has no GPX for it" in x.lower() for x in free))
|
||||
fr = load("traversee-charlevoix")
|
||||
self.assertTrue(self.sentences(fr)[0].startswith("Traversée de Charlevoix is a "))
|
||||
self.assertIn('<span lang="fr">', str(trail.brief_sentences(fr)[0]))
|
||||
|
||||
Reference in new issue
Block a user