def run_oatts():
    logging.info('Running oatts tests...')
    if (not deps_installed()):
        logging.error('oatts is not installed! See the README.')
        exit(0)
    rm_gen_dir()
    try:
        subprocess.run(['oatts', 'generate', '-w', 'generated-tests', '-s', 'swagger/api.spec.yaml', '--host', 'localhost:{}'.format(PORT), '--customValuesFile', 'test/values.json'], check=True)
        subprocess.run(['mocha', '--recursive', 'generated-tests'], check=True)
    except CalledProcessError:
        logging.error('oatts tests failed!')
    finally:
        rm_gen_dir()
def run_oatts():
    logging.info('Running oatts tests...')
    if (not deps_installed()):
        logging.error('oatts is not installed! See the README.')
        exit(0)
    rm_gen_dir()
    try:
        subprocess.run(['oatts', 'generate', '-w', 'generated-tests', '-s', 'swagger/api.spec.yaml', '--host', 'localhost:{}'.format(PORT), '--customValuesFile', 'test/values.json'], check=True)
        subprocess.run(['mocha', '--recursive', 'generated-tests'], check=True)
    except CalledProcessError:
        logging.error('oatts tests failed!')
    finally:
        rm_gen_dir()