MCPcopy
hub / github.com/deadc0de6/dotdrop / get_string

Function get_string

tests/helpers.py:62–66  ·  view source on GitHub ↗

Get a random string of length 'length

(length)

Source from the content-addressed store, hash-verified

60
61
62def get_string(length):
63 """Get a random string of length 'length'"""
64 alpha = string.ascii_uppercase + string.digits
65 temp = ''.join(random.choice(alpha) for _ in range(length))
66 return f'tmp.{temp}{TMPSUFFIX}'
67
68
69def get_tempdir():

Callers 9

test_updateMethod · 0.90
test_listingsMethod · 0.90
test_compareMethod · 0.90
test_installMethod · 0.90
test_creates_dstMethod · 0.90
test_jhelpersMethod · 0.90
test_importMethod · 0.90
create_random_fileFunction · 0.85

Calls

no outgoing calls

Tested by 8

test_updateMethod · 0.72
test_listingsMethod · 0.72
test_compareMethod · 0.72
test_installMethod · 0.72
test_creates_dstMethod · 0.72
test_jhelpersMethod · 0.72
test_importMethod · 0.72