test: change autogen.py random to fixed

This commit is contained in:
Alex Duan 2023-04-07 11:05:09 +08:00
parent db1cb4a8a8
commit df2ad9174d
1 changed files with 1 additions and 4 deletions

View File

@ -51,10 +51,7 @@ class AutoGen:
metas = [] metas = []
for i in range(cnt): for i in range(cnt):
colname = f"{pre}{i}" colname = f"{pre}{i}"
if i < len(types): sel = i % len(types)
sel = i
else:
sel = random.randint(0, len(types)-1)
coltype = types[sel] coltype = types[sel]
sql = f"{colname} {coltype}" sql = f"{colname} {coltype}"
if sqls != "": if sqls != "":