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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user