def generate_inputs(cls):
     result = generate_string()
     if random.random() < 0.5:
         result += random.choice([".png", ".jpg"])
     return {"filename": result}
Exemplo n.º 2
0
 def generate_inputs(cls):
     return {"letters": generate_string(2)}
 def generate_inputs(cls):
     if random.random() < 0.5:
         row = [generate_string()] * 3
     else:
         row = [generate_string() for _ in range(3)]
     return {"row": row}
Exemplo n.º 4
0
 def generate_inputs(cls):
     strlen, listlen = randint(1, 10), randint(1, 10)
     strings = [generate_string(strlen) for _ in range(listlen)]
     return dict(strings=strings, )