Skip to content

Commit

Permalink
Removed docstrings.parse() calls in the tests.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 244380832
Change-Id: I2b71df317b70d95820faa54cbc03d4b28027ec38
  • Loading branch information
joejoevictor authored and copybara-github committed Apr 19, 2019
1 parent 4a0ab95 commit 1e2053b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions fire/helptext_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import os
import textwrap

from fire import docstrings
from fire import helptext
from fire import inspectutils
from fire import test_components as tc
Expand All @@ -36,10 +35,7 @@ def setUp(self):

def testHelpTextNoDefaults(self):
component = tc.NoDefaults
# TODO(joejoevictor): We should have inspectutils.Info to generate
# info['docstring_info'] as well.
info = inspectutils.Info(component)
info['docstring_info'] = docstrings.parse(info['docstring'])
help_screen = helptext.HelpText(
component=component,
info=info,
Expand All @@ -52,7 +48,6 @@ def testHelpTextNoDefaults(self):
def testHelpTextNoDefaultsObject(self):
component = tc.NoDefaults()
info = inspectutils.Info(component)
info['docstring_info'] = docstrings.parse(info['docstring'])
help_screen = helptext.HelpText(
component=component,
info=info,
Expand All @@ -69,7 +64,6 @@ def testHelpTextNoDefaultsObject(self):
def testHelpTextFunction(self):
component = tc.NoDefaults().double
info = inspectutils.Info(component)
info['docstring_info'] = docstrings.parse(info['docstring'])
help_screen = helptext.HelpText(
component=component,
info=info,
Expand All @@ -85,7 +79,6 @@ def testHelpTextFunction(self):
def testHelpTextFunctionWithDefaults(self):
component = tc.WithDefaults().triple
info = inspectutils.Info(component)
info['docstring_info'] = docstrings.parse(info['docstring'])
help_screen = helptext.HelpText(
component=component,
info=info,
Expand Down Expand Up @@ -130,7 +123,6 @@ def testHelpScreenForFunctionDocstringWithLineBreak(self):
component = tc.ClassWithMultilineDocstring.example_generator
t = trace.FireTrace(component, name='example_generator')
info = inspectutils.Info(component)
info['docstring_info'] = docstrings.parse(info['docstring'])
help_output = helptext.HelpText(component, info, t)
expected_output = """
NAME
Expand All @@ -156,7 +148,6 @@ def testHelpScreenForFunctionFunctionWithDefaultArgs(self):
component = tc.WithDefaults().double
t = trace.FireTrace(component, name='double')
info = inspectutils.Info(component)
info['docstring_info'] = docstrings.parse(info['docstring'])
help_output = helptext.HelpText(component, info, t)
expected_output = """
NAME
Expand Down

0 comments on commit 1e2053b

Please sign in to comment.