mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 23:20:51 +00:00
improve tests
This commit is contained in:
@@ -3,7 +3,9 @@ import random
|
||||
|
||||
from .common import BASE_URL
|
||||
|
||||
def randomword(length):
|
||||
def randstring(length=0):
|
||||
if length == 0:
|
||||
length = random.randint(1, 30)
|
||||
return ''.join(random.choice(string.lowercase) for i in range(length))
|
||||
|
||||
def urljoin(base, *args):
|
||||
|
Reference in New Issue
Block a user