Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def main():
    """Main entry point when calling from the command line"""
    args = wptcommandline.parse_args()
    kwargs = vars(args)

    if kwargs["prefs_root"] is None:
        kwargs["prefs_root"] = os.path.abspath(os.path.join(here, "prefs"))

    setup_logging(kwargs, {"raw": sys.stdout})

    if args.list_test_groups:
        list_test_groups(**kwargs)
    else:
        return run_tests(**kwargs)
        


src/w/p/wptrunner-0.2.5/runtests.py   wptrunner(Download)
 
if __name__ == "__main__":
    success = wptrunner.main()
    if not success:
        sys.exit(1)