Seed date fields correctly during validation.
We were seeding them with random strings.
This commit is contained in:
parent
f2b6008e5f
commit
31f724b0c3
|
@ -541,6 +541,8 @@ class WorkflowService(object):
|
|||
return FileSchema().dump(file)
|
||||
elif field.type == 'files':
|
||||
return random.randrange(1, 100)
|
||||
elif field.type == 'date':
|
||||
return datetime.utcnow()
|
||||
else:
|
||||
return WorkflowService._random_string()
|
||||
|
||||
|
|
Loading…
Reference in New Issue