This commit is contained in:
@@ -207,6 +207,13 @@ class FeatureBenchTest(unittest.TestCase):
|
||||
self.assertEqual(found.reason, reason)
|
||||
self.assertFalse(self.log.exists())
|
||||
|
||||
def test_reads_no_places_of_the_seats_since_no_bug_is_planted_at_them(self):
|
||||
argv = [part for name, value in self.given.items() if name != "--runs" for part in (name, value)]
|
||||
with contextlib.redirect_stderr(io.StringIO()) as told, contextlib.redirect_stdout(io.StringIO()) as report:
|
||||
code = main.main(argv, self.env, read=lambda home: Failure("the history cannot be read"))
|
||||
self.assertNotIn("the history cannot be read", told.getvalue())
|
||||
self.assertEqual((code, report.getvalue()[:12]), (0, "task-bench: "))
|
||||
|
||||
def test_a_file_beside_the_features_folders_is_no_feature(self):
|
||||
(self.tasks / "README.md").write_text("# Features\n")
|
||||
self.assertEqual([found.name for found in features(self.tasks)], ["halve"])
|
||||
|
||||
Reference in New Issue
Block a user