Answer architecture round 4: 0 🔴, 0 🟡 (0 misread); loop-claude's suites sit beside their modules, and what tests share across packages lives in each package's doubles.py
CI / tests (pull_request) Successful in 3m43s
CI / tests (pull_request) Successful in 3m43s
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
"""Test doubles for the suites that read an item's detail: Touches bullets that touch-predictions can and cannot read."""
|
||||
|
||||
# The bullets six items held on 2026-11-18, which touch-predictions cannot read: `(small)` after a bare path, and a part not in backticks.
|
||||
UNREADABLE_BULLETS = (
|
||||
"- `bin/judge_replay/main.py` (small)",
|
||||
"- `bin/do_epic/main.py` (small)",
|
||||
"- `principles/technical-principles.md`: the tests bullet group, `A valuable test checks behaviour` (small)",
|
||||
"- `README.md`: loop-claude's section (small)",
|
||||
"- `bin/rule_hook/rules.py`: the rule table (small)",
|
||||
"- `settings.json`: the PreToolUse matcher (small)",
|
||||
)
|
||||
|
||||
READABLE_TOUCHES = "Why.\n\nTouches:\n\n- `bin/a.py`: `main`, `Plan.branch` (small)\n- `bin/run.sh`: lines 10-20\n- `docs/new.md`\n"
|
||||
@@ -8,8 +8,8 @@ import unittest.mock
|
||||
|
||||
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parent.parent))
|
||||
|
||||
from project_config.test_project_config import configured, JIRA_PLAN, JIRA_SCORING
|
||||
from plan.test_ranking import DECISIONS, README, TODO
|
||||
from project_config.doubles import configured, JIRA_PLAN, JIRA_SCORING
|
||||
from plan.doubles import DECISIONS, README, TODO
|
||||
from project_config.settings import DEFAULT_FLOOR
|
||||
from todo_item import edits, main
|
||||
from failure import Failure
|
||||
@@ -18,6 +18,7 @@ from project_config.main import located
|
||||
from plan_store.fakes import MemoryPlan
|
||||
from plan_store.todo_md import plan_of
|
||||
from plan import ranking
|
||||
from todo_item.doubles import READABLE_TOUCHES, UNREADABLE_BULLETS
|
||||
from todo_item.table import table
|
||||
|
||||
ADD = ["add", "--release", "0.1.0", "--l", "1", "--e", "1", "--i", "1", "--s", "1", "--moves", "1 by 9", "Count the `a | b` runs."]
|
||||
@@ -25,16 +26,6 @@ CHANGELOG = "# Changelog\n\n## Unreleased\n\n- Older news.\n\n## 0.1.0\n\n- Firs
|
||||
# ## Details of the ranked fixture, without the trailing ## Notes.
|
||||
HEADER = "| ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves |\n|---|---|---|---|---|---|---|---|---|---|---|\n"
|
||||
DETAILS = "## Details\n\n### 3. Make it fast, `a | b`.\n\nFast detail.\n\n### 1. Ship the later thing.\n\nLater detail.\n\n"
|
||||
# The bullets six items held on 2026-11-18, which touch-predictions cannot read: `(small)` after a bare path, and a part not in backticks.
|
||||
UNREADABLE_BULLETS = (
|
||||
"- `bin/judge_replay/main.py` (small)",
|
||||
"- `bin/do_epic/main.py` (small)",
|
||||
"- `principles/technical-principles.md`: the tests bullet group, `A valuable test checks behaviour` (small)",
|
||||
"- `README.md`: loop-claude's section (small)",
|
||||
"- `bin/rule_hook/rules.py`: the rule table (small)",
|
||||
"- `settings.json`: the PreToolUse matcher (small)",
|
||||
)
|
||||
READABLE_TOUCHES = "Why.\n\nTouches:\n\n- `bin/a.py`: `main`, `Plan.branch` (small)\n- `bin/run.sh`: lines 10-20\n- `docs/new.md`\n"
|
||||
|
||||
|
||||
class Terminal(io.StringIO):
|
||||
|
||||
Reference in New Issue
Block a user