Skip to content

Commit

Permalink
update docstrings
Browse files Browse the repository at this point in the history
Co-authored-by: Disha Lodha <[email protected]>
  • Loading branch information
JAlvarezJarreta and Dishalodha authored Nov 5, 2024
1 parent 893fb77 commit 6416445
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/argparse/test_argparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ def test_add_log_arguments(self, add_log_file: bool, cmd_args: dict[str, Any], l
def test_parse_args_url_arg_present(self) -> None:
"""Tests `ArgumentParser.parse_args()` method when server arguments and a URL argument all
with the same prefix are added to the parser.
"""
# Add server arguments with prefix "src" and URL argument with the same prefix to the parser
parser = ArgumentParser()
Expand All @@ -307,7 +308,11 @@ def test_parse_args_url_arg_present(self) -> None:

@pytest.mark.dependency(depends=["add_server_arguments"])
def test_parse_args_not_server_host(self) -> None:
"""Tests `ArgumentParser.parse_args()` method when a non-database server host is added as argument."""
"""Tests `ArgumentParser.parse_args()` method when a non-database server host is added as argument.
This test checks that arguments with a `host` suffix in their names (e.g., `file_host`) are parsed correctly.
"""
parser = ArgumentParser()
parser.add_argument("--file_host")
args = parser.parse_args(["--file_host", "host"])
Expand Down

0 comments on commit 6416445

Please sign in to comment.