def test_parse_args(self, _, args_true, ground_truth): args_test = parse_args(args_true) map_args_to_ground_truth = { "-f": "file_path", "-m": "mapping", "-c": "secrets_file", "-s": "scope", "-dl": "delimiter", "-nh": "num_header", "-nf": "num_footer", "-lt": "line_terminator", "-b": "batch_size", "-dr": "dryrun", "-d": "debug", } [ self.assertEqual(args_test[0][map_args_to_ground_truth[key]], ground_truth[key]) for key in ground_truth.keys() ]
def main(argv): args, ap = parse_args(sys.argv[1:]) LusidLogger(args["debug"]) load_instruments(args) return 0
def main(): args, ap = parse_args(sys.argv[1:]) LusidLogger(args["debug"]) load_portfolios(args) return 0
def main(): args, ap = parse_args(sys.argv[1:]) LusidLogger(args["debug"]) load_transactions(args) return 0
def main(argv): args, ap = parse_args(sys.argv[1:]) LusidLogger(args["debug"]) load_holdings(args) return 0