Added fake submitted dates to fixtures

This commit is contained in:
CocoByte 2024-02-05 19:14:09 -07:00
parent 4dbbf3ae5a
commit 19764e8151
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F

View file

@ -1,3 +1,4 @@
import datetime
import logging
import random
from faker import Faker
@ -104,7 +105,7 @@ class DomainApplicationFixture:
# Random choice of agency for selects, used as placeholders for testing.
else random.choice(DomainApplication.AGENCIES) # nosec
)
da.submission_date = fake.date()
da.federal_type = (
app["federal_type"]
if "federal_type" in app