bug/fix_issues_with_move_common_errors #12

Merged
alexchetaev merged 1 commit from alexchetaev/frostfs-testlib:bug/fix_issues_with_move_common_errors into master 2023-03-06 19:06:57 +00:00

View file

@ -4,6 +4,7 @@ import string
ONLY_ASCII_LETTERS = string.ascii_letters
DIGITS_AND_ASCII_LETTERS = string.ascii_letters + string.digits
NON_DIGITS_AND_LETTERS = string.punctuation
def random_string(length: int = 5, source: str = ONLY_ASCII_LETTERS):
@ -17,7 +18,7 @@ def random_string(length: int = 5, source: str = ONLY_ASCII_LETTERS):
(str): random string with len == length
"""
return "".join(random.choice(string.ascii_letters) for i in range(length))
return "".join(random.choice(source) for i in range(length))
def is_str_match_pattern(error: Exception, status_pattern: str) -> bool: