(function_name, is_test=False, variation=None)
| 45 | raise Exception("No function name found") |
| 46 | |
| 47 | def get_script_name_from_function_name(function_name, is_test=False, variation=None): |
| 48 | if variation is None: |
| 49 | if is_test: |
| 50 | return f"test_{function_name}.py" |
| 51 | else: |
| 52 | return f"{function_name}.py" |
| 53 | else: |
| 54 | if is_test: |
| 55 | return f"test_{function_name}_{variation}.py" |
| 56 | else: |
| 57 | return f"{function_name}_{variation}.py" |
| 58 | |
| 59 | def delete_old_scripts(sources_dirname, func_name): |
| 60 | dir_path = os.path.join(sources_dirname, func_name) |
no outgoing calls
no test coverage detected