Name data-sources in task-bench's usage line
CI / tests (pull_request) Successful in 3m41s

This commit is contained in:
2026-11-23 19:41:53 +01:00
parent 0a270d5d45
commit c798278406
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ from larv_review.history_commands import read_places
from task_bench.record_figures import recorded_bench
from run_heavy.capped_docker import SHARE_VARIABLE
USAGE = "usage: task-bench --image <image> --test <shell text> [--base <ref>] [--head <ref>] [--prefix <shell text>] [--seed <n>] [--bugs <n>] [--runs <n>] [--record-figures], or task-bench --tasks features --image <image> --test <shell text> [--base <ref>] [--head <ref>] [--runs <n>] [--record-figures], or task-bench gather"
USAGE = "usage: task-bench --image <image> --test <shell text> [--base <ref>] [--head <ref>] [--prefix <shell text>] [--seed <n>] [--bugs <n>] [--runs <n>] [--record-figures], or task-bench --tasks features|data-sources --image <image> --test <shell text> [--base <ref>] [--head <ref>] [--runs <n>] [--record-figures], or task-bench gather"
# A panel of three readers, seated as the README's audience, picked these options on 2026-11-21, each 3 to 0.
OPTIONS = ("--base", "--bugs", "--head", "--image", "--prefix", "--record-figures", "--runs", "--seed", "--tasks", "--test")
# The one option that takes no value.
+1
View File
@@ -182,6 +182,7 @@ class OptionsTest(unittest.TestCase):
def test_data_sources_is_a_kind_of_task_that_runs_5_times_at_each_side_by_default(self):
self.assertEqual(self.options("--tasks", "data-sources")["--runs"], "5")
self.assertEqual(self.options("--tasks", "sources").reason, "--tasks takes bugs, features or data-sources, not sources")
self.assertIn(", or task-bench --tasks features|data-sources --image <image>", main.USAGE)
def test_the_options_that_choose_bugs_are_refused_with_data_sources(self):
self.assertEqual(self.options("--tasks", "data-sources", "--seed", "2").reason, "--seed is for a bench of bugs, so it doesn't go with --tasks data-sources")