Apply prefix/suffix quirks in the correct order + don't just pick a random prefix/suffix
This commit is contained in:
parent
701f53d719
commit
828a8c32d5
1 changed files with 4 additions and 8 deletions
12
dataobjs.py
12
dataobjs.py
|
@ -143,14 +143,10 @@ class pesterQuirks(object):
|
|||
string = q.apply(string, first=(i==0), last=lastStr)
|
||||
else:
|
||||
string = q.apply(string)
|
||||
if i == 0:
|
||||
if len(prefix) >= 1:
|
||||
myprefix = random.choice(prefix)
|
||||
string = myprefix.apply(string)
|
||||
if lastStr:
|
||||
if len(suffix) >= 1:
|
||||
mysuffix = random.choice(suffix)
|
||||
string = mysuffix.apply(string)
|
||||
elif q.type == 'prefix' and i == 0:
|
||||
string = q.apply(string)
|
||||
elif q.type == 'suffix' and lastStr:
|
||||
string = q.apply(string)
|
||||
newlist.append(string)
|
||||
|
||||
final = []
|
||||
|
|
Loading…
Reference in a new issue