def list_tests_from_module_path(module_path): if not os.path.exists(module_path): abort(501) tests = list_tests(module_path) session["tests"] = tests return jsonify({"tests": tests})
def list_tests_from_module_name(module_name): tests = list_tests(module_name) session["tests"] = tests return jsonify({"tests": tests})