old_01
This commit is contained in:
8
doners/shop-telegram-bot/tests/utils.py
Normal file
8
doners/shop-telegram-bot/tests/utils.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from random import randint, choice
|
||||
from string import ascii_lowercase, digits
|
||||
|
||||
def get_random_string(a, b):
|
||||
return ''.join([choice(ascii_lowercase+digits) for _ in range(randint(a, b))])
|
||||
|
||||
def get_random_float(a, b):
|
||||
return float(f"{randint(a, b)}.{randint(0, 99)}")
|
||||
Reference in New Issue
Block a user