def test_display_analysis_invalid(mocker):
    mocker.patch(
        target=
        "gamestonk_terminal.stocks.fundamental_analysis.eclect_us_view.eclect_us_model.get_filings_analysis",
        return_value="",
    )
    eclect_us_view.display_analysis(ticker="AAPL")
Exemplo n.º 2
0
 def call_analysis(self, other_args: List[str]):
     """Process analysis command."""
     parser = argparse.ArgumentParser(
         add_help=False,
         formatter_class=argparse.ArgumentDefaultsHelpFormatter,
         prog="analysis",
         description=
         """Display analysis of SEC filings based on NLP model. [Source: https://eclect.us]""",
     )
     ns_parser = parse_known_args_and_warn(
         parser, other_args, export_allowed=EXPORT_ONLY_RAW_DATA_ALLOWED)
     if ns_parser:
         eclect_us_view.display_analysis(self.ticker)
Exemplo n.º 3
0
    def call_analysis(self, other_args: List[str]):
        """Process analysis command"""
        parser = argparse.ArgumentParser(
            add_help=False,
            formatter_class=argparse.ArgumentDefaultsHelpFormatter,
            prog="analysis",
            description="""Display analysis of SEC filings based on NLP model. [Source: https://eclect.us]""",
        )
        try:
            ns_parser = parse_known_args_and_warn(parser, other_args)
            if not ns_parser:
                return

            eclect_us_view.display_analysis(self.ticker)

        except Exception as e:
            print(e, "\n")
def test_display_analysis():
    eclect_us_view.display_analysis(ticker="AAPL")