def discover_tests_cmd(root, pattern=".*", **args): if _discovery_enabled: atexit.unregister(_run_at_exit) _discover_tests(root,pattern) run_all(args)
def discover_tests_api(root, pattern=".*", suite_name=None): if _discovery_enabled: atexit.unregister(_run_at_exit) _discover_tests(root,pattern) return tags.get_suite(suite_name)