Kill the surviving mutants of the scoring and ranking

This commit is contained in:
2026-11-16 02:50:37 +01:00
parent 9d9c5a3352
commit 727ed70ecb
5 changed files with 56 additions and 5 deletions
@@ -327,6 +327,12 @@ class LoadTest(ConfigCase):
assert isinstance(named, ProjectConfig), named
self.assertEqual(named.jira_scoring, Scoring("100 * V / (2**S + 8)", 0.5))
def test_a_plan_in_a_file_holds_no_formula_or_bar_of_the_configs(self) -> None:
self.write("acme", CLIENT)
named = load(self.checkout, self.checkout, self.home)
assert isinstance(named, ProjectConfig), named
self.assertIsNone(named.jira_scoring)
def test_a_jira_plan_without_a_formula_or_a_bar_fails_naming_each(self) -> None:
self.write("acme", JIRA_CLIENT.replace(JIRA_SCORING, ""))
self.assertIn("`plan` names a Jira epic, so `jira-score-formula` must be set, as `project-config --help` shows; `plan` names a Jira epic, so `jira-score-bar` must be set", self.failure())