Skip to content

Commit

Permalink
refactor(parse-args-tests): update comments for test_known_args as …
Browse files Browse the repository at this point in the history
…requested
  • Loading branch information
ismailarilik committed Nov 11, 2024
1 parent 8b38ad0 commit de9c37a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bootstrap/bootstrap_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ def test_option_checking(self, err):

@patch("configure.parse_example_config", lambda known_args, _: known_args)
def test_known_args(self):
# It should call `parse_example_config` with known arguments
# It should contain known and correct arguments
known_args = configure.parse_args(["--enable-full-tools"])
self.assertTrue(known_args["full-tools"][0][1])
known_args = configure.parse_args(["--disable-full-tools"])
self.assertFalse(known_args["full-tools"][0][1])
# It should call `parse_example_config` with known arguments and their values
# It should contain known arguments and their values
known_args = configure.parse_args(["--target=x86_64-unknown-linux-gnu"])
self.assertEqual(known_args["target"][0][1], "x86_64-unknown-linux-gnu")
known_args = configure.parse_args(["--target", "x86_64-unknown-linux-gnu"])
Expand Down

0 comments on commit de9c37a

Please sign in to comment.