change: format code with balck

This commit is contained in:
debugtalk
2020-05-14 14:21:35 +08:00
parent bdd8b53d89
commit 9ba550bd9f
45 changed files with 664 additions and 844 deletions

View File

@@ -13,8 +13,9 @@ from httprunner.exceptions import ParamsError
def gen_random_string(str_len):
""" generate random string with specified length
"""
return ''.join(
random.choice(string.ascii_letters + string.digits) for _ in range(str_len))
return "".join(
random.choice(string.ascii_letters + string.digits) for _ in range(str_len)
)
def get_timestamp(str_len=13):
@@ -36,4 +37,3 @@ def sleep(n_secs):
""" sleep n seconds
"""
time.sleep(n_secs)