def call_decliners(self, other_args):
     """Process decliners command"""
     parser = argparse.ArgumentParser(
         prog="decliners",
         description=
         "Displays top ETF/Mutual fund decliners from wsj.com/market-data",
         add_help=False,
     )
     parser.add_argument(
         "-l",
         "--limit",
         help="Limit of ETFs to display",
         type=check_positive,
         default=10,
         dest="limit",
     )
     if other_args and "-" not in other_args[0][0]:
         other_args.insert(0, "-l")
     ns_parser = parse_known_args_and_warn(
         parser, other_args, export_allowed=EXPORT_ONLY_RAW_DATA_ALLOWED)
     if ns_parser:
         wsj_view.show_top_mover("decliners", ns_parser.limit,
                                 ns_parser.export)
def test_show_top_mover(sort_type, mocker):
    mocker.patch.object(target=helper_funcs.gtff,
                        attribute="USE_TABULATE_DF",
                        new=False)
    wsj_view.show_top_mover(sort_type, limit=5, export="")