(testcase_abs_path: Text)
return testcase_python_abs_path, name_in_title_case
convert single YAML/JSON testcase path to python file
convert single YAML/JSON testcase path to python file
convert single YAML / JSON testcase path to python file
def convert_testcase_path(testcase_abs_path: Text) -> Tuple[Text, Text]:
    """convert single YAML/JSON testcase path to python file"""
    testcase_new_path = ensure_file_abs_path_valid(testcase_abs_path)

    dir_path = os.path.dirname(testcase_new_path)
    file_name, _ = os.path.splitext(os.path.basename(testcase_new_path))
    testcase_python_abs_path = os.path.join(dir_path, f"{file_name}_test.py")

    # convert title case, e.g. request_with_variables => RequestWithVariables
    name_in_title_case = file_name.title().replace("_", "")

    return testcase_python_abs_path, name_in_title_case
def convert_testcase_path ( testcase_abs_path : Text ) -> Tuple [ Text , Text ] : testcase_new_path = ensure_file_abs_path_valid ( testcase_abs_path ) dir_path = os . path . dirname ( testcase_new_path ) file_name , _ = os . path . splitext ( os . path . basename ( testcase_new_path ) ) testcase_python_abs_path = os . path . join ( dir_path , f"{file_name}_test.py" ) # convert title case, e.g. request_with_variables => RequestWithVariables name_in_title_case = file_name . title ( ) . replace ( "_" , "" ) return testcase_python_abs_path , name_in_title_case