Answer stability round 1: 0 🔴, 2 🟡 (0 misread); test the config's floor in record-scoring's Floor and Next lines, make ranking ask for the floor, fail a huge integer floor by name

This commit is contained in:
2026-11-14 22:12:07 +01:00
parent 68f867e74b
commit ea0910d60d
12 changed files with 49 additions and 40 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ sys.path.insert(0, str(pathlib.Path(__file__).resolve().parent.parent))
from project_config.test_project_config import configured
from release_plan.test_ranking import DECISIONS, README, TODO
from project_config.settings import DEFAULT_FLOOR
from todo_item import edits, main
from failure import Failure
from project_config.main import located
@@ -41,7 +42,7 @@ class TodoItem(unittest.TestCase):
(self.folder / "README.md").write_text(README)
(self.folder / "docs").mkdir()
(self.folder / "docs" / "decisions.md").write_text(DECISIONS)
ranked = ranking.rank(TODO, README, DECISIONS, "")
ranked = ranking.rank(TODO, README, DECISIONS, "", DEFAULT_FLOOR)
assert not isinstance(ranked, ranking.Failure)
self.todo.write_text(ranked.text)