const='exp-topology.yml', help='Expected topology file name') args = parser.parse_args() common.VERBOSE = False common.LOGGING = False return args def main(): args = parse() topology = read_topology.load(args.topology, None, args.defaults) common.exit_on_error() augment.main.transform(topology) common.exit_on_error() result = utils.transformation_results_yaml(topology) expected = pathlib.Path('exp-' + args.topology).read_text() if result == expected: print("Results match") else: print('\n'.join( list( difflib.unified_diff(expected.split('\n'), result.split('\n'), fromfile='expected', tofile='actual')))) main()
def main(): arg1 = sys.argv[1] augment.main(arg1)
import parse_pdf import augment import aggregate from common import arg_parser if __name__ == "__main__": args = arg_parser() if args.crawl: parse_pdf.main() augment.main() aggregate.main()
def main(argv): arg1 = sys.argv[1] augment.main(arg1) augment.main(conffile)