Answer principles round 1: 0 🔴, 4 🟡 (0 misread); drop typing.cast and subTest loops from new code, state the price list's two uses, record the subTest decision
This commit is contained in:
@@ -32,11 +32,11 @@ class ScoreBullets(unittest.TestCase):
|
||||
with_extra = skill.replace("## The score\n\n", "## The score\n\n- A bullet before the anchors.\n\n", 1)
|
||||
self.assertEqual(score_bullets(with_extra), score_bullets(skill))
|
||||
|
||||
def test_fails_where_an_anchor_or_a_dimension_is_missing(self):
|
||||
skill = SKILL.read_text()
|
||||
for dropped in ("- **10 — Duress-proof.**", "- **Shape** —"):
|
||||
with self.subTest(dropped=dropped):
|
||||
self.assertIsInstance(score_bullets(skill.replace(dropped, "- Dropped:", 1)), Failure)
|
||||
def test_fails_where_an_anchor_is_missing(self):
|
||||
self.assertIsInstance(score_bullets(SKILL.read_text().replace("- **10 — Duress-proof.**", "- Dropped:", 1)), Failure)
|
||||
|
||||
def test_fails_where_a_dimension_is_missing(self):
|
||||
self.assertIsInstance(score_bullets(SKILL.read_text().replace("- **Shape** —", "- Dropped:", 1)), Failure)
|
||||
|
||||
def test_fails_where_a_fifth_dimension_is_added(self):
|
||||
skill = SKILL.read_text()
|
||||
|
||||
Reference in New Issue
Block a user