Refuse a register entry that is no regular file, and say data source in what task-bench prints
This commit is contained in:
@@ -51,8 +51,8 @@ def digest(sides: dict[Side, str], table: list[str], tasks: list[TaskRuns], is_f
|
||||
|
||||
|
||||
def told(task: TaskRuns, is_file: typing.Callable[[str], bool], noun: str) -> list[str]:
|
||||
"""The digest's section on task, which its heading calls by noun: a bug where it names the bug's file, and a feature or a
|
||||
data source otherwise."""
|
||||
"""The digest's section on task, under a heading that calls the task by noun. A task with a file is a bug; any other is a
|
||||
feature or a data source."""
|
||||
passing, failing = [run for run in task.runs if run.passed], [run for run in task.runs if not run.passed]
|
||||
passed = f"{len(passing)} of the {len(task.runs)} runs passed." if failing else f"The {counted(len(task.runs), 'run')} passed."
|
||||
# Only a bug has a file of its own. A feature has none, so no file a run read counts as a decoy.
|
||||
|
||||
Reference in New Issue
Block a user