Answer principles round 2: 0 🔴, 0 🟡; check the step in the help, mark item 192 principle
This commit is contained in:
@@ -125,7 +125,8 @@ class Rank(unittest.TestCase):
|
||||
goals = rank_todo.readme_goals("## Goals\n\n" + "".join(f"{number}. **Achieve:** G.\n" for number in range(1, count + 1)))
|
||||
weights = list(rank_todo.goal_weights(goals).values())
|
||||
self.assertEqual((round(weights[0], 3), round(weights[-1], 3), round(sum(weights), 6)), (first, last, 1))
|
||||
self.assertTrue(str(first) in rank_todo.__doc__ and str(last) in rank_todo.__doc__)
|
||||
for figure in (rank_todo.GOAL_STEP, first, last):
|
||||
self.assertIn(str(figure), rank_todo.__doc__)
|
||||
|
||||
def test_scores_an_item_by_the_weights_of_the_goals_it_moves(self):
|
||||
readme = "## Goals\n\n1. **Achieve:** A.\n 1. **Maintain:** B.\n 2. **Achieve:** C.\n2. **Achieve:** D.\n"
|
||||
|
||||
Reference in New Issue
Block a user