def lambda_handler(event, contex): if ('unitTest' in event) and event['unitTest']: print('Running unit tests') common.unit_tests() check_latest_batch(dry_run=True) else: print('Running main (non-test) handler') return (check_latest_batch())
def lambda_handler(event, contex): if ('unitTest' in event) and event['unitTest']: print('Running unit tests') common.unit_tests() test_regex() else: print('Running main (non-test) handler') return (check_old(event))
def lambda_handler(event,context): if ('unitTest' in event) and event['unitTest']: print('Running unit tests') common.unit_tests() common.mako_test() test_eligibility() look_for_new(dry_run=True) else: print('Running main (non-test) handler') return(look_for_new())