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

Method test_one_line_runs_over

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

Source from the content-addressed store, hash-verified

58 self.assertEqual(expected_docstring_info, docstring_info)
59
60 def test_one_line_runs_over(self):
61 # pylint: disable=line-too-long
62 docstring = """A one line docstring that is both a little too verbose and a little too long
63 so it runs onto a second line.
64 """
65 # pylint: enable=line-too-long
66 docstring_info = docstrings.parse(docstring)
67 expected_docstring_info = DocstringInfo(
68 summary='A one line docstring that is both a little too verbose and '
69 'a little too long so it runs onto a second line.',
70 )
71 self.assertEqual(expected_docstring_info, docstring_info)
72
73 def test_one_line_runs_over_whitespace(self):
74 docstring = """

Callers

nothing calls this directly

Calls 1

DocstringInfoClass · 0.85

Tested by

no test coverage detected