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
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")