Read the goals file in one module, and hold the plan and the decisions to each other in another
This commit is contained in:
@@ -9,8 +9,8 @@ sys.path.insert(0, str(pathlib.Path(__file__).resolve().parent))
|
||||
|
||||
from project_config.test_project_config import configured
|
||||
from release_plan.test_ranking import DECISIONS, OLD_SHAPE, README, TODO
|
||||
from release_plan import goals_file, ranking
|
||||
import rank_todo
|
||||
from release_plan import ranking
|
||||
|
||||
|
||||
class Main(unittest.TestCase):
|
||||
@@ -109,6 +109,6 @@ class Main(unittest.TestCase):
|
||||
self.assertEqual(self.run_main("--fix"), (1, "rank_todo.py: cannot read the arguments --fix; usage: rank_todo.py [--check] [todo.md]\n"))
|
||||
|
||||
def test_states_the_goal_weights_the_ranking_computes(self):
|
||||
for figure in (ranking.GOAL_STEP, 0.212, 0.188, 0.082, 0.053):
|
||||
for figure in (goals_file.GOAL_STEP, 0.212, 0.188, 0.082, 0.053):
|
||||
self.assertIn(str(figure), rank_todo.__doc__)
|
||||
self.assertIn(f"While it is under {ranking.FLOOR}, or the history holds no scoring run, code health weighs {ranking.UNDER_FLOOR} times its weight by position, and the other goals keep theirs.", " ".join(rank_todo.__doc__.split()))
|
||||
self.assertIn(f"While it is under {goals_file.FLOOR}, or the history holds no scoring run, code health weighs {goals_file.UNDER_FLOOR} times its weight by position, and the other goals keep theirs.", " ".join(rank_todo.__doc__.split()))
|
||||
|
||||
Reference in New Issue
Block a user