Add random choice for Federal agency fixtures instead of blank

This commit is contained in:
igorkorenfeld 2023-03-30 16:19:33 -04:00
parent 15290b3c1a
commit 381b348f0c
No known key found for this signature in database
GPG key ID: 826947A4B867F659

View file

@ -135,7 +135,12 @@ class DomainApplicationFixture:
da.organization_type = (
app["organization_type"] if "organization_type" in app else "federal"
)
da.federal_agency = app["federal_agency"] if "federal_agency" in app else ""
da.federal_agency = (
app["federal_agency"]
if "federal_agency" in app
else random.choice(DomainApplication.AGENCIES)
)
da.federal_type = (
app["federal_type"]
if "federal_type" in app