Answer stability round 2: 0 🔴, 2 🟡 (0 misread); keep Python's reason in the unreadable-template message and pin fragments of the messages
CI / tests (pull_request) Has been cancelled

This commit is contained in:
Lilleman
2026-11-20 11:07:02 +01:00
parent c39d23a1b3
commit e0b2068230
3 changed files with 10 additions and 9 deletions
+6 -5
View File
@@ -76,11 +76,12 @@ class ConfigTest(unittest.TestCase):
for line, fault in (
("sub-task-summary = 4", "`sub-task-summary` is 4, not one line of text"),
('sub-task-summary = "a\\nb {Summary}"', "not one line of text"),
('sub-task-summary = "{label}"', "`sub-task-summary` lacks {Summary}, so no sub-task's summary would say what changes in it, such as `\"{label}: {Summary}\"`"),
('sub-task-summary = "{label}: {Summary} {repo}"', "`sub-task-summary` names {repo}, and only {label} and {Summary} are known"),
('sub-task-summary = "{Summary:>9}"', "`sub-task-summary` writes {Summary:>9} with something after the name; write {Summary} alone"),
('sub-task-summary = "{Summary} {label!r}"', "`sub-task-summary` writes {label!r} with something after the name; write {label} alone"),
('sub-task-summary = "{Summary"', "`sub-task-summary` is '{Summary', which has a brace that stands alone; write a brace that is plain text as {{ or }}"),
('sub-task-summary = "{label}"', "`sub-task-summary` lacks {Summary}"),
('sub-task-summary = "{label}: {Summary} {repo}"', "names {repo}, and only {label} and {Summary} are known"),
('sub-task-summary = "{Summary:>9}"', "writes {Summary:>9} with something after the name; write {Summary} alone"),
('sub-task-summary = "{Summary} {label!r}"', "writes {label!r} with something after the name; write {label} alone"),
('sub-task-summary = "{Summary!}"', "`sub-task-summary` is '{Summary!}', which Python can't read as a template ("),
('sub-task-summary = "{Summary"', "`sub-task-summary` is '{Summary', which Python can't read as a template ("),
):
with self.subTest(line=line):
self.write(SETTINGS + line + "\n")