Skip to content

Commit fff48a4

Browse files
redsun82Copilot
andcommitted
Just: run the whole of the forwarding tests
The entry point sat two thirds of the way up the file, so running it as a script stopped there: the thirteen tests defined below it never ran, and `bazel test` reported a clean twenty-six with nothing to say it was a subset. Among the missing were the checks that the fixtures still match what `just` really dumps, and the one pinning that a recipe reached under two spellings runs once. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent a50585e commit fff48a4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎misc/just/test_forward_command.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,6 @@ def test_leaves_a_path_absolute_when_the_argument_was(self):
241241
)
242242

243243

244-
if __name__ == "__main__":
245-
unittest.main()
246-
247-
248244
class TestFindJustfilesAbove(unittest.TestCase):
249245
"""The two shapes a consuming root can have, both of which the README promises.
250246
@@ -472,3 +468,7 @@ def test_a_root_defining_its_own_is_not(self):
472468
self.recipes(self.outer)["_root_format"],
473469
self.recipes(self.inner)["_root_format"],
474470
)
471+
472+
473+
if __name__ == "__main__":
474+
unittest.main()

0 commit comments

Comments
 (0)