Kill the surviving mutants of the scoring and ranking
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user