1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-08 23:04:15 +00:00

improve tests cleanup

This commit is contained in:
deadc0de6
2019-02-07 22:43:56 +01:00
parent bc1b23e1a2
commit 88c730157d
5 changed files with 7 additions and 3 deletions

View File

@@ -32,7 +32,8 @@ def clean(path):
def get_string(length):
"""Get a random string of length 'length'"""
alpha = string.ascii_uppercase + string.digits
return ''.join(random.choice(alpha) for _ in range(length))
temp = ''.join(random.choice(alpha) for _ in range(length))
return 'dotdrop-tests-{}'.format(temp)
def get_tempdir():