MCPcopy Index your code
hub / github.com/google/python-fire / test_one_line_too_long

Method test_one_line_too_long

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

Source from the content-addressed store, hash-verified

45 self.assertEqual(expected_docstring_info, docstring_info)
46
47 def test_one_line_too_long(self):
48 # pylint: disable=line-too-long
49 docstring = """A one line docstring that is both a little too verbose and a little too long so it keeps going well beyond a reasonable length for a one-liner.
50 """
51 # pylint: enable=line-too-long
52 docstring_info = docstrings.parse(docstring)
53 expected_docstring_info = DocstringInfo(
54 summary='A one line docstring that is both a little too verbose and '
55 'a little too long so it keeps going well beyond a reasonable length '
56 'for a one-liner.',
57 )
58 self.assertEqual(expected_docstring_info, docstring_info)
59
60 def test_one_line_runs_over(self):
61 # pylint: disable=line-too-long

Callers

nothing calls this directly

Calls 1

DocstringInfoClass · 0.85

Tested by

no test coverage detected