Skip to content

Commit 1e2053b

Browse files
joejoevictorcopybara-github
authored andcommitted
Removed docstrings.parse() calls in the tests.
PiperOrigin-RevId: 244380832 Change-Id: I2b71df317b70d95820faa54cbc03d4b28027ec38
1 parent 4a0ab95 commit 1e2053b

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

fire/helptext_test.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import os
2222
import textwrap
2323

24-
from fire import docstrings
2524
from fire import helptext
2625
from fire import inspectutils
2726
from fire import test_components as tc
@@ -36,10 +35,7 @@ def setUp(self):
3635

3736
def testHelpTextNoDefaults(self):
3837
component = tc.NoDefaults
39-
# TODO(joejoevictor): We should have inspectutils.Info to generate
40-
# info['docstring_info'] as well.
4138
info = inspectutils.Info(component)
42-
info['docstring_info'] = docstrings.parse(info['docstring'])
4339
help_screen = helptext.HelpText(
4440
component=component,
4541
info=info,
@@ -52,7 +48,6 @@ def testHelpTextNoDefaults(self):
5248
def testHelpTextNoDefaultsObject(self):
5349
component = tc.NoDefaults()
5450
info = inspectutils.Info(component)
55-
info['docstring_info'] = docstrings.parse(info['docstring'])
5651
help_screen = helptext.HelpText(
5752
component=component,
5853
info=info,
@@ -69,7 +64,6 @@ def testHelpTextNoDefaultsObject(self):
6964
def testHelpTextFunction(self):
7065
component = tc.NoDefaults().double
7166
info = inspectutils.Info(component)
72-
info['docstring_info'] = docstrings.parse(info['docstring'])
7367
help_screen = helptext.HelpText(
7468
component=component,
7569
info=info,
@@ -85,7 +79,6 @@ def testHelpTextFunction(self):
8579
def testHelpTextFunctionWithDefaults(self):
8680
component = tc.WithDefaults().triple
8781
info = inspectutils.Info(component)
88-
info['docstring_info'] = docstrings.parse(info['docstring'])
8982
help_screen = helptext.HelpText(
9083
component=component,
9184
info=info,
@@ -130,7 +123,6 @@ def testHelpScreenForFunctionDocstringWithLineBreak(self):
130123
component = tc.ClassWithMultilineDocstring.example_generator
131124
t = trace.FireTrace(component, name='example_generator')
132125
info = inspectutils.Info(component)
133-
info['docstring_info'] = docstrings.parse(info['docstring'])
134126
help_output = helptext.HelpText(component, info, t)
135127
expected_output = """
136128
NAME
@@ -156,7 +148,6 @@ def testHelpScreenForFunctionFunctionWithDefaultArgs(self):
156148
component = tc.WithDefaults().double
157149
t = trace.FireTrace(component, name='double')
158150
info = inspectutils.Info(component)
159-
info['docstring_info'] = docstrings.parse(info['docstring'])
160151
help_output = helptext.HelpText(component, info, t)
161152
expected_output = """
162153
NAME

0 commit comments

Comments
 (0)