Esempio n. 1
0
                        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()
Esempio n. 2
0
def main():
    arg1 = sys.argv[1]
    augment.main(arg1)
Esempio n. 3
0
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()
Esempio n. 4
0
def main(argv):
   arg1 = sys.argv[1]
   augment.main(arg1)
   augment.main(conffile)