Exemplo n.º 1
0
def get_class_str(class_name: str):
    keys = Common.load_array_from_file('keys.txt', '\n')
    result = ''
    result += 'class '
    result += class_name + ' :' + '\n'
    result += indent + 'def __init__(self, params):\n' + get_content(keys)
    result = result.replace('params', get_params(keys))
    result += get_static_create_method(class_name, keys)
    Common.write_output(result)
    return result
 def write_output(self):
     write_output(self.output, self.outfile_path, self.indices,
                  self.mut_count)