MCPcopy
hub / github.com/google/python-fire / test_google_format_args_only

Method test_google_format_args_only

fire/docstrings_test.py:85–100  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

83 self.assertEqual(expected_docstring_info, docstring_info)
84
85 def test_google_format_args_only(self):
86 docstring = """One line description.
87
88 Args:
89 arg1: arg1_description
90 arg2: arg2_description
91 """
92 docstring_info = docstrings.parse(docstring)
93 expected_docstring_info = DocstringInfo(
94 summary='One line description.',
95 args=[
96 ArgInfo(name='arg1', description='arg1_description'),
97 ArgInfo(name='arg2', description='arg2_description'),
98 ]
99 )
100 self.assertEqual(expected_docstring_info, docstring_info)
101
102 def test_google_format_arg_named_args(self):
103 docstring = """

Callers

nothing calls this directly

Calls 2

DocstringInfoClass · 0.85
ArgInfoClass · 0.85

Tested by

no test coverage detected