Seed date fields correctly during validation.

We were seeding them with random strings.
This commit is contained in:
mike cullerton 2022-02-17 11:48:08 -05:00
parent f2b6008e5f
commit 31f724b0c3
1 changed files with 2 additions and 0 deletions

View File

@ -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()